/* =========================================================
   KAILASH ELECTRONICS & TECHNOLOGY — Stylesheet
   Design direction: technical, precise, all-blue. Sharp edges,
   monospace-flavoured tags, left-accent cards, a dark feature
   band and split hero. Distinct from the default Wilshire look.
   ========================================================= */

:root {
  --primary-color: #0A2540;     /* deep navy blue */
  --primary-light: #14497D;
  --secondary-color: #1E6FE0;   /* bright blue */
  --secondary-light: #4A90F0;
  --accent-color: #00B4D8;      /* electric cyan-blue */
  --accent-dark: #0091AD;
  --text-dark: #0E1B2A;
  --text-muted: #5A6B7B;
  --light-bg: #EDF3FB;          /* blue-tinted light */
  --white: #FFFFFF;
  --radius: 4px;
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.75;
  background: var(--white);
}

a { text-decoration: none; transition: all .25s ease; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.section-padding { padding: 100px 0; }
@media (max-width: 767px) {
  .section-padding { padding: 60px 0; }
}

/* Technical section tag: bracketed, mono-spaced, cyan */
.section-tag {
  display: inline-block;
  color: var(--secondary-color);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
  padding-left: 30px;
  position: relative;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--accent-color);
  transform: translateY(-50%);
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.text-center .section-tag { padding-left: 0; }
.text-center .section-tag::before { display: none; }

.bg-light-soft { background-color: var(--light-bg); }

/* ---------- Buttons: sharp, technical ---------- */
.btn-brand {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius);
  letter-spacing: .3px;
  transition: all .25s ease;
}
.btn-brand:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-brand-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 11px 30px;
  border-radius: var(--radius);
}
.btn-brand-outline:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
}
.btn-brand-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 11px 30px;
  border-radius: var(--radius);
}
.btn-brand-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background-color: var(--primary-color);
  color: #C6D6EA;
  font-size: 0.85rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar a { color: #C6D6EA; }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { margin-right: 6px; color: var(--accent-color); }

/* =========================================================
   NAVBAR — white with cyan accent top border
   ========================================================= */
.main-navbar {
  background-color: var(--white);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(10,37,64,0.08);
  border-top: 3px solid var(--accent-color);
  transition: all .3s ease;
}
.main-navbar.scrolled {
  padding: 9px 0;
  box-shadow: 0 6px 22px rgba(10,37,64,0.10);
}
/* Blank logo area — reserve a little height, show nothing */
.main-navbar .navbar-brand img {
  width: 350px;
  height: 60px;
  padding: 0;
  margin: 0;
}
.main-navbar .nav-link {
  color: var(--primary-color);
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0 14px;
  padding: 8px 0 !important;
  position: relative;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
  color: var(--secondary-color);
}
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background-color: var(--accent-color);
}
.main-navbar .btn-brand { font-size: 0.8rem; white-space: nowrap; }

/* =========================================================
   HERO SLIDER — split, bottom-anchored, accent underline
   ========================================================= */
.hero-slider { position: relative; }
.hero-slide {
  height: 90vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,37,64,0.94) 0%, rgba(10,37,64,0.82) 42%, rgba(20,73,125,0.35) 100%);
}
/* thin cyan grid accent line across bottom */
.hero-slide::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 45%, transparent 45%, transparent 100%);
  z-index: 2;
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-tag {
  display: inline-block;
  color: var(--accent-color);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 6px 0;
  border-top: 2px solid var(--accent-color);
  margin-bottom: 6px;
}
.hero-slide h1 {
  color: var(--white);
  font-size: 3.4rem;
  font-weight: 700;
  max-width: 800px;
  line-height: 1.12;
  margin-bottom: 8px;
}
.hero-slide h1::after {
  content: '';
  display: block;
  width: 90px; height: 3px;
  background: var(--accent-color);
  margin-top: 22px;
}
.hero-slide p {
  color: #D5E1F0;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 20px 0 34px;
}
@media (max-width: 767px) {
  .hero-slide { height: 82vh; min-height: 480px; }
  .hero-slide h1 { font-size: 2.15rem; }
  .hero-slide p { font-size: 1rem; }
}
.hero-slider .carousel-indicators { bottom: 26px; gap: 4px; }
.hero-slider .carousel-indicators button {
  background-color: rgba(255,255,255,0.4);
  width: 28px; height: 4px; border-radius: 0;
  border: none;
  transition: all .3s ease;
}
.hero-slider .carousel-indicators button.active {
  background-color: var(--accent-color);
  width: 44px;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; opacity: 0.55; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { opacity: 1; }

/* small inner hero banner for sub pages */
.page-hero {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,37,64,0.95) 0%, rgba(20,73,125,0.78) 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 40%, transparent 40%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.7rem; margin-bottom: 10px; }
.page-hero h1::after {
  content: '';
  display: block;
  width: 70px; height: 3px;
  background: var(--accent-color);
  margin-top: 14px;
}
.page-hero .breadcrumb-custom {
  color: #C6D6EA;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: .5px;
}
.page-hero .breadcrumb-custom a { color: var(--accent-color); }
.page-hero .breadcrumb-custom a:hover { color: var(--white); }

/* =========================================================
   ABOUT SECTION — framed image with corner accent
   ========================================================= */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  position: relative;
  z-index: 1;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 90px; height: 90px;
  border-top: 3px solid var(--accent-color);
  border-left: 3px solid var(--accent-color);
  z-index: 0;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 90px; height: 90px;
  border-bottom: 3px solid var(--secondary-color);
  border-right: 3px solid var(--secondary-color);
  z-index: 0;
}
.about-img-wrap .badge-float {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 18px 26px;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(10,37,64,0.28);
  text-align: center;
  z-index: 2;
}
@media (max-width: 991px) {
  .about-img-wrap .badge-float { right: 12px; }
}
.about-img-wrap .badge-float .num {
  font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 700;
  color: var(--white); display: block; line-height: 1;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  background-color: var(--secondary-color);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   WHY CHOOSE US — DARK feature band + left-accent cards
   ========================================================= */
.feature-band {
  background:
    linear-gradient(160deg, var(--primary-color) 0%, #071B31 100%);
  position: relative;
}
.feature-band .section-title,
.feature-band .section-tag { color: var(--white); }
.feature-band .section-tag { color: var(--accent-color); }

.feature-card {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 34px 28px;
  height: 100%;
  text-align: left;
  transition: all .3s ease;
}
.feature-card:hover {
  background-color: rgba(255,255,255,0.07);
  border-left-color: var(--accent-color);
  transform: translateY(-5px);
}
.feature-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background-color: rgba(0,180,216,0.14);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.feature-card h5 { font-size: 1.12rem; margin-bottom: 10px; color: var(--white); }
.feature-card p { color: #A9BED4; font-size: 0.94rem; margin-bottom: 0; }

/* Light variant fallback if used on light bg */
.bg-light-soft .feature-card {
  background-color: var(--white);
  border: 1px solid #E2EAF4;
  border-left: 3px solid transparent;
}
.bg-light-soft .feature-card:hover { border-left-color: var(--secondary-color); }
.bg-light-soft .feature-card h5 { color: var(--primary-color); }
.bg-light-soft .feature-card p { color: var(--text-muted); }
.bg-light-soft .feature-card .icon-wrap {
  background-color: rgba(30,111,224,0.10);
  color: var(--secondary-color);
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,37,64,0.95) 0%, rgba(20,73,125,0.86) 100%);
  z-index: 0;
}
.cta-section::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 100%;
  background: var(--accent-color);
  z-index: 1;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); margin-bottom: 10px; font-size: 2.2rem; }
.cta-section p { color: #C7D6E8; margin-bottom: 0; }

/* =========================================================
   PRODUCTS / CATEGORIES
   ========================================================= */
.product-card {
  background-color: var(--white);
  border: 1px solid #E2EAF4;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s ease;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(10,37,64,0.14);
  border-color: transparent;
}
.product-card .product-img {
  height: 230px;
  overflow: hidden;
  position: relative;
}
.product-card .product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,37,64,0.35) 100%);
}
.product-card .product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-card .product-body {
  padding: 22px 24px;
  border-top: 3px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card .product-body h5 { margin-bottom: 0; font-size: 1.1rem; }
.category-card-link .product-body::after {
  content: '\2192';
  font-family: var(--font-head);
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: transform .25s ease;
}
.category-card-link:hover .product-body::after { transform: translateX(5px); }

/* =========================================================
   INDIVIDUAL PRODUCT ITEM CARDS (category pages)
   ========================================================= */
.item-card {
  background-color: var(--white);
  border: 1px solid #E2EAF4;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s ease;
  height: 100%;
}
.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(10,37,64,0.13);
  border-color: transparent;
}
.item-card .item-img { height: 210px; overflow: hidden; }
.item-card .item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.item-card:hover .item-img img { transform: scale(1.07); }
.item-card .item-body {
  padding: 20px 22px;
  border-left: 3px solid var(--secondary-color);
}
.item-card .item-body h5 { margin-bottom: 0; font-size: 1.02rem; }

.category-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.category-card-link .product-card { cursor: pointer; }
.category-card-link:hover .product-card h5 { color: var(--secondary-color); }

/* =========================================================
   MISSION / VISION / VALUES (About page)
   ========================================================= */
.mv-card {
  background-color: var(--white);
  border: 1px solid #E2EAF4;
  border-radius: var(--radius);
  padding: 38px 32px;
  height: 100%;
  position: relative;
  border-left: 4px solid var(--secondary-color);
  transition: all .3s ease;
}
.mv-card:hover { box-shadow: 0 14px 32px rgba(10,37,64,0.10); }
.mv-card:nth-child(2) { border-left-color: var(--accent-color); }
.mv-card i {
  font-size: 1.8rem;
  color: var(--white);
  background: var(--secondary-color);
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.mv-card:nth-child(2) i { background: var(--accent-color); }
.mv-card h4 { margin-bottom: 12px; }
.mv-card p { color: var(--text-muted); margin-bottom: 0; }

.value-pill {
  background-color: var(--white);
  border: 1px solid #E2EAF4;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  height: 100%;
  transition: all .3s ease;
}
.value-pill:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 14px 30px rgba(10,37,64,0.10);
}
.value-pill i {
  font-size: 1.6rem;
  color: var(--secondary-color);
  background-color: rgba(30,111,224,0.10);
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.value-pill h6 { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.value-pill p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-info-card {
  background: linear-gradient(160deg, var(--primary-color) 0%, #071B31 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 42px 34px;
  height: 100%;
  border-top: 3px solid var(--accent-color);
}
.contact-info-card h4 { color: var(--white); margin-bottom: 26px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .ci-icon {
  width: 46px; height: 46px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-item .ci-text small {
  display: block;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  margin-bottom: 4px;
  font-family: var(--font-head);
}
.contact-info-item .ci-text a,
.contact-info-item .ci-text span { color: var(--white); font-weight: 500; }
.contact-info-item .ci-text a:hover { color: var(--accent-color); }

.contact-form-wrap {
  background-color: var(--white);
  border: 1px solid #E2EAF4;
  border-radius: var(--radius);
  padding: 42px;
}
.contact-form-wrap .form-control {
  border: 1px solid #D6E0EC;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background-color: #FAFCFF;
}
.contact-form-wrap .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(30,111,224,0.14);
  background-color: var(--white);
}

/* =========================================================
   FOOTER — blank brand area
   ========================================================= */
.site-footer {
  background: linear-gradient(160deg, var(--primary-color) 0%, #06172A 100%);
  color: #A9BED4;
  border-top: 3px solid var(--accent-color);
}
.site-footer .footer-top { padding: 72px 0 42px; }
.site-footer h5 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.02rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: .5px;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  background-color: var(--accent-color);
}
.site-footer p { font-size: 0.93rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 13px; }
.site-footer ul li a { color: #A9BED4; font-size: 0.94rem; }
.site-footer ul li a:hover { color: var(--accent-color); padding-left: 4px; }
.site-footer .footer-contact-list i { color: var(--accent-color); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 20px 0;
  font-size: 0.85rem;
  color: #8FA6BF;
}
.footer-bottom a { color: var(--accent-color); }

/* =========================================================
   MISC
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px; height: 46px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(10,37,64,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 999;
  font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--accent-color); color: var(--primary-color); }

.preloader-fade { animation: fadeInUp .7s ease both; }


@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-logo img{
  height: 90px;
}
/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 991.98px) {
  .top-bar { display: none; }
  .main-navbar .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing {
    padding: 10px 0 14px;
    border-top: 1px solid #eee;
    margin-top: 10px;
  }
  .main-navbar .navbar-nav {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 10px 0 !important; }
  .main-navbar .navbar-nav .nav-item { width: 100%; }
  .nav-products-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .mobile-cat-toggle {
    background: none;
    border: none;
    padding: 6px 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform .25s ease;
    line-height: 1;
  }
  .mobile-cat-toggle.open { transform: rotate(180deg); }
  .main-navbar .navbar-nav .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 0 4px 16px !important;
    margin-top: 0 !important;
    animation: none !important;
    display: none;
  }
  .main-navbar .navbar-nav .dropdown-menu.show { display: block; }
}

/* =========================================================
   PRODUCTS DROPDOWN (navbar)
   ========================================================= */
.main-navbar .dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(10,37,64,0.16);
  padding: 10px;
  margin-top: 8px;
  min-width: 250px;
  border-top: 3px solid var(--accent-color);
}
.main-navbar .dropdown-item {
  color: var(--primary-color);
  font-family: var(--font-head);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: rgba(30,111,224,0.08);
  color: var(--secondary-color);
}
@media (min-width: 992px) {
  .main-navbar .dropdown-menu {
    display: none;
    animation: fadeInUp .2s ease both;
  }
  .main-navbar .dropdown-menu.show { display: block; }

}


@media(max-width:768px){
  .main-navbar .navbar-brand img {
  width: 220px;
  height: 40px;
  padding: 0;
  margin: 0;
}
}