:root {
  --primary: #e8501a;
  --primary-dark: #c43e10;
  --secondary: #1a2744;
  --dark: #0d1b2a;
  --accent: #ff6b35;
  --light-gray: #f4f6f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

/* ─── Top Bar ─── */
.top-bar {
  background: var(--dark);
  color: #aab;
  font-size: 0.82rem;
  padding: 6px 0;
}
.top-bar a { color: #ccd; text-decoration: none; }
.top-bar a:hover { color: var(--primary); }
.top-bar i { color: var(--primary); }

/* ─── Navbar ─── */
.navbar {
  background: var(--secondary);
  padding: 0;
  transition: all .35s;
}
.navbar.scrolled {
  background: rgba(26,39,68,.97);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.navbar-brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: #fff !important;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-brand .brand-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
}
.navbar-brand span { color: var(--primary); }
.navbar-nav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 22px 22px !important;
  position: relative;
  transition: color .3s;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; width: 0; height: 3px;
  background: var(--primary);
  transition: all .3s;
  transform: translateX(-50%);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}
.navbar-toggler {
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px;
}
.navbar-toggler:focus { box-shadow: none; }

/* ─── Hero / Banner ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--secondary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,27,42,.92) 0%, rgba(26,39,68,.7) 50%, rgba(232,80,26,.25) 100%),
    url('../img/banner/banner2.jpg') center/cover no-repeat;
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-particles .spark {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: sparkFloat 4s infinite;
}
@keyframes sparkFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: .8; }
  100% { opacity: 0; transform: translateY(-200px) scale(0); }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,80,26,.15);
  border: 1px solid rgba(232,80,26,.35);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: fadeInDown .8s ease;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp .8s ease;
}
.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 4px;
  background: var(--primary);
  opacity: .4;
  border-radius: 2px;
}
.hero p {
  color: rgba(255,255,255,.72);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 35px;
  animation: fadeInUp 1s ease;
}
.hero-buttons { animation: fadeInUp 1.2s ease; }
.btn-thermal {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.btn-thermal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,.15) 100%);
}
.btn-thermal:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,80,26,.4);
}
.btn-outline-thermal {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  padding: 12px 34px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: all .3s;
}
.btn-outline-thermal:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232,80,26,.08);
}
.hero-stats {
  margin-top: 60px;
  animation: fadeInUp 1.4s ease;
}
.stat-item {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.hero-image-col {
  position: relative;
  animation: fadeInRight 1s ease;
}
.hero-floating-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 30px;
  color: #fff;
}
.hero-floating-card .icon-wrap {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.hero-floating-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.hero-floating-card p { font-size: .88rem; color: rgba(255,255,255,.6); margin: 0; }
.floating-badge {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatBadge 3s ease-in-out infinite;
}
.floating-badge.badge-1 { bottom: 20%; right: -10%; }
.floating-badge.badge-2 { top: 10%; left: -5%; animation-delay: 1.5s; }
.floating-badge .fb-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.floating-badge .fb-text strong { display: block; font-size: .95rem; }
.floating-badge .fb-text small { color: rgba(255,255,255,.55); font-size: .75rem; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Section Styles ─── */
.section-title {
  text-align: center;
  margin-bottom: 55px;
}
.section-title .tag {
  display: inline-block;
  background: rgba(232,80,26,.1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--secondary);
  margin-bottom: 14px;
}
.section-title p {
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ─── About / Why Choose Us ─── */
#home { scroll-margin-top: 80px; }
.about-section { padding: 90px 0; background: #fff; }
.about-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.about-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,27,42,.85));
  padding: 30px;
  color: #fff;
}
.about-img-overlay h5 { font-size: 1.1rem; margin: 0; }
.about-features .feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.about-features .f-icon {
  width: 52px; height: 52px;
  background: rgba(232,80,26,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.about-features .f-text h5 {
  font-size: 1.08rem;
  color: var(--secondary);
  margin-bottom: 4px;
}
.about-features .f-text p {
  font-size: .9rem;
  color: #6c757d;
  margin: 0;
}

/* ─── Products Section ─── */
.products-section {
  padding: 90px 0;
  background: var(--light-gray);
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,.06);
  transition: all .4s;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,.04);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
  border-color: rgba(232,80,26,.2);
}
.product-card .card-img-top-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.product-card .card-img-top-wrap .product-icon-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #2a3f66 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,.15);
  position: relative;
}
.product-card .card-img-top-wrap .product-icon-fg {
  position: absolute;
  width: 72px; height: 72px;
  background: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 8px 25px rgba(232,80,26,.35);
}
.product-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .card-body h5 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 10px;
}
.product-card .card-body p {
  font-size: .88rem;
  color: #6c757d;
  flex: 1;
}
.product-card .card-body .product-tag {
  display: inline-block;
  background: rgba(232,80,26,.08);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: auto;
  width: fit-content;
}

/* ─── CTA Section ─── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,80,26,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; }
.cta-section p { color: rgba(255,255,255,.6); font-size: 1.05rem; }

/* ─── Contact Section ─── */
.contact-section {
  padding: 90px 0;
  background: #fff;
}
.contact-info-card {
  background: var(--secondary);
  border-radius: 16px;
  padding: 40px 30px;
  color: #fff;
  height: 100%;
}
.contact-info-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.contact-info-card > p {
  color: rgba(255,255,255,.55);
  font-size: .92rem;
  margin-bottom: 30px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item .ci-icon {
  width: 48px; height: 48px;
  background: rgba(232,80,26,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item .ci-text h6 {
  font-size: .95rem;
  margin-bottom: 2px;
  color: #fff;
}
.contact-info-item .ci-text p {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}
.contact-socials {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contact-socials a {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all .3s;
  margin-right: 8px;
}
.contact-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  height: 100%;
}
.contact-form-card h4 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
.contact-form-card > p {
  color: #6c757d;
  font-size: .9rem;
  margin-bottom: 28px;
}
.form-floating .form-control,
.form-floating .form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: .92rem;
}
.form-floating .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(232,80,26,.12);
}
.form-floating label {
  font-size: .88rem;
  color: #999;
}

/* ─── Footer ─── */
footer {
  background: var(--dark);
  padding: 50px 0 0;
  color: rgba(255,255,255,.55);
}
.footer-brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.footer-brand span { color: var(--primary); }
footer h6 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .88rem;
  transition: all .3s;
}
footer ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  margin-top: 40px;
  font-size: .82rem;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Scroll-to-top ─── */
.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(232,80,26,.35);
  transition: all .3s;
}
.scroll-top:hover { transform: translateY(-3px); background: var(--primary-dark); }
.scroll-top.show { display: flex; }

/* ─── Responsive tweaks ─── */
@media (max-width: 991px) {
  .navbar-nav .nav-link { padding: 12px 20px !important; }
  .navbar-nav .nav-link::after { display: none; }
  .stat-item { padding: 10px 15px; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-image-col { margin-top: 40px; }
  .floating-badge { display: none; }
}
@media (max-width: 576px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
  .stat-item:last-child { border-bottom: none; }
  .top-bar .d-flex { flex-direction: column; gap: 4px; text-align: center; }
}

/* ========== MOBILE HORIZONTAL SCROLLBAR FIX ========== */
/* This fixes the horizontal scrollbar issue on mobile devices only */
@media (max-width: 576px) {
  /* Prevent horizontal scrollbar */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  
  body {
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Fix containers */
  .container, .row, [class*="col-"] {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Hide floating badges on mobile (they cause overflow with negative positioning) */
  .floating-badge {
    display: none !important;
  }
  
  /* Fix CTA decorative element */
  .cta-section {
    overflow-x: hidden;
  }
  
  .cta-section::before {
    display: none; /* Hide the decorative circle on mobile */
  }
  
  /* Ensure images don't cause overflow */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix product cards */
  .product-card {
    max-width: 100%;
  }
  
  /* Fix any potential overflow from hero section */
  .hero {
    overflow-x: hidden;
    width: 100%;
  }
}