/* =========================================================
   TECHNOCELL FACTORY — Custom Stylesheet
   Modern tech-manufacturing design system
   ========================================================= */

:root {
  --primary-color: #0E5D82;      /* deep teal-blue, from logo */
  --primary-light: #1583B0;
  --secondary-color: #4E9F3D;    /* leaf green, from logo */
  --secondary-light: #7BC94F;
  --accent-color: #68BFDB;       /* warm orange, CTA highlight */
  --accent-dark: #D3D925;
  --text-dark: #131A1F;
  --text-muted: #5C6E76;
  --light-bg: #F2F8F7;
  --dark-bg: #0A2E3E;
  --white: #FFFFFF;
  --font-display: '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%;
  scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(14,93,130,0.09), rgba(78,159,61,0.09));
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: inline-block;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.section-title span { color: var(--primary-color); }

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

/* Buttons */
.btn-brand {
  background: linear-gradient(120deg, var(--accent-color), var(--accent-dark));
  color: var(--white);
  border: none;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 10px;
  letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(255,122,69,0.28);
  transition: all .25s ease;
}
.btn-brand:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(255,122,69,0.38);
}
.btn-brand-outline {
  background-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
  font-weight: 600;
  padding: 11px 30px;
  border-radius: 10px;
}
.btn-brand-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}
.btn-brand-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 10px;
}
.btn-brand-secondary:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background: linear-gradient(90deg, var(--dark-bg), var(--primary-color));
  color: var(--white);
  font-size: 0.85rem;
  padding: 9px 0;
}
.top-bar a { color: var(--white); opacity: .92; }
.top-bar a:hover { opacity: 1; color: var(--secondary-light); }
.top-bar i { margin-right: 6px; color: var(--secondary-light); }

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  background-color: var(--white);
  padding: 16px 0;
  box-shadow: 0 2px 20px rgba(10,46,62,0.06);
  transition: all .3s ease;
}
.main-navbar.scrolled { padding: 9px 0; box-shadow: 0 6px 28px rgba(10,46,62,0.1); }
.main-navbar .navbar-brand img { width: 300px; margin-left: -23px; }
.main-navbar .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 14px;
  padding: 8px 0 !important;
  position: relative;
  font-size: 0.98rem;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
  color: var(--primary-color);
}
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.main-navbar .btn-brand { font-size: 0.82rem; white-space: nowrap; box-shadow: none; padding: 10px 22px; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider { position: relative; }
.hero-slide {
  height: 92vh;
  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(115deg, rgba(10,46,62,0.94) 0%, rgba(14,93,130,0.82) 42%, rgba(14,93,130,0.35) 75%, rgba(14,93,130,0.15) 100%);
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,46,62,0.55) 0%, transparent 35%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.hero-slide .hero-tag::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-color);
  display: inline-block;
}
.hero-slide h1 {
  color: var(--white);
  font-size: 3.4rem;
  font-weight: 700;
  max-width: 760px;
  line-height: 1.15;
}
.hero-slide p {
  color: #DCE7EA;
  font-size: 1.15rem;
  max-width: 580px;
  margin: 22px 0 34px;
}
@media (max-width: 767px) {
  .hero-slide { height: 82vh; min-height: 500px; }
  .hero-slide h1 { font-size: 2.15rem; }
  .hero-slide p { font-size: 1rem; }
}
.hero-slider .carousel-indicators { bottom: 26px; }
.hero-slider .carousel-indicators button {
  background-color: var(--white);
  opacity: 0.5;
  width: 26px; height: 4px; border-radius: 2px;
}
.hero-slider .carousel-indicators button.active { opacity: 1; background-color: var(--accent-color); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 6%; opacity: 0.6; }

/* small inner hero banner for sub pages */
.page-hero {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,46,62,0.94) 0%, rgba(14,93,130,0.86) 55%, rgba(78,159,61,0.55) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 10px; }
.page-hero .breadcrumb-custom { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.92rem; }
.page-hero .breadcrumb-custom a { color: var(--white); }
.page-hero .breadcrumb-custom a:hover { color: var(--secondary-light); }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 18px;
  width: 100%;
  box-shadow: 0 24px 50px rgba(10,46,62,0.2);
}
.about-img-wrap .badge-float {
  position: absolute;
  bottom: -26px;
  right: -22px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 20px 26px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(10,46,62,0.28);
  text-align: center;
}
@media (max-width: 991px) {
  .about-img-wrap .badge-float { right: 12px; }
}
.about-img-wrap .badge-float .num { font-size: 1.9rem; font-weight: 700; color: var(--white); display: block; font-family: var(--font-display); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   WHY CHOOSE US — feature cards
   ========================================================= */
.feature-card {
  background-color: var(--white);
  border-radius: 18px;
  padding: 38px 30px;
  height: 100%;
  text-align: left;
  box-shadow: 0 8px 28px rgba(10,46,62,0.07);
  transition: all .35s ease;
  border: 1px solid #EAF1F0;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(10,46,62,0.14);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .icon-wrap {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,93,130,0.12), rgba(78,159,61,0.14));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 22px;
}
.feature-card:nth-child(3n+2) .icon-wrap {
  background: linear-gradient(135deg, rgba(255,122,69,0.14), rgba(255,122,69,0.06));
  color: var(--accent-dark);
}
.feature-card:nth-child(3n+3) .icon-wrap {
  background: linear-gradient(135deg, rgba(78,159,61,0.16), rgba(78,159,61,0.06));
  color: var(--secondary-color);
}
.feature-card h5 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background-color: var(--dark-bg);
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,46,62,0.95) 0%, rgba(14,93,130,0.9) 55%, rgba(78,159,61,0.75) 100%);
  z-index: 0;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 10px; font-size: 2.1rem; }
.cta-section p { color: #DCE7EA; margin-bottom: 0; font-size: 1.05rem; }

/* =========================================================
   PRODUCTS
   ========================================================= */
.product-card {
  background-color: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10,46,62,0.08);
  transition: all .35s ease;
  height: 100%;
  border: 1px solid #EAF1F0;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(10,46,62,0.16);
}
.product-card .product-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}
.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: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card .product-body h5 { margin-bottom: 0; font-size: 1.15rem; }

/* =========================================================
   MISSION / VISION (About page)
   ========================================================= */
.mv-card {
  background-color: var(--white);
  border-radius: 18px;
  padding: 40px 34px;
  height: 100%;
  box-shadow: 0 8px 28px rgba(10,46,62,0.08);
  border: 1px solid #EAF1F0;
  position: relative;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}
.mv-card:nth-child(2)::before { background: linear-gradient(180deg, var(--accent-color), var(--accent-dark)); }
.mv-card i {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.mv-card:nth-child(2) i { background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)); }
.mv-card h4 { margin-bottom: 14px; }
.mv-card p { color: var(--text-muted); margin-bottom: 0; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-info-card {
  background: linear-gradient(150deg, var(--dark-bg), var(--primary-color));
  color: var(--white);
  border-radius: 18px;
  padding: 44px 34px;
  height: 100%;
}
.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: 48px; height: 48px;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-radius: 12px;
  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(--secondary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  margin-bottom: 4px;
  font-weight: 700;
}
.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(--secondary-light); }

.contact-form-wrap {
  background-color: var(--white);
  border-radius: 18px;
  padding: 44px;
  box-shadow: 0 8px 36px rgba(10,46,62,0.08);
  border: 1px solid #EAF1F0;
}
.contact-form-wrap .form-control {
  border: 1.5px solid #E1E9E8;
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.contact-form-wrap .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14,93,130,0.12);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(160deg, var(--dark-bg), #0d3a4d 60%, var(--primary-color));
  color: #C4D8DE;
}
.site-footer .footer-top { padding: 76px 0 44px; }
.site-footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}
.site-footer .footer-brand-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.site-footer .footer-brand-text img { height: auto;
    max-width: 300px;
    margin-left: -22px; }
.site-footer p { font-size: 0.93rem; text-align: justify; max-width: 400px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 13px; }
.site-footer ul li a { color: #C4D8DE; font-size: 0.94rem; }
.site-footer ul li a:hover { color: var(--secondary-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--secondary-light); }

/* =========================================================
   MISC
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(10,46,62,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 { transform: translateY(-3px); }

.preloader-fade { animation: fadeInUp .7s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 991.98px) {
  .top-bar { display: none; }

  .main-navbar .navbar-brand img { height: auto; }
  .main-navbar .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing {
    padding: 12px 0 16px;
    border-top: 1px solid #eee;
    margin-top: 8px;
  }
  .main-navbar .navbar-nav {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 11px 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) — present only if categories exist
   ========================================================= */
.main-navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(10,46,62,0.18);
  padding: 10px;
  margin-top: 8px;
  min-width: 240px;
}
.main-navbar .dropdown-item {
  color: var(--text-dark);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: rgba(14,93,130,0.08);
  color: var(--primary-color);
}
.main-navbar .dropdown-toggle::after { vertical-align: 2px; }
@media (min-width: 992px) {
  .main-navbar .dropdown-menu {
    display: none;
    animation: fadeInUp .2s ease both;
  }
  .main-navbar .dropdown-menu.show {
    display: block;
  }
}

/* =========================================================
   ITEM CARDS (category pages — not used, no subcategories, kept for completeness)
   ========================================================= */
.item-card {
  background-color: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10,46,62,0.08);
  transition: all .35s ease;
  height: 100%;
  border: 1px solid #EAF1F0;
}
.item-card:hover { transform: translateY(-8px); box-shadow: 0 22px 42px rgba(10,46,62,0.16); }
.item-card .item-img { height: 220px; 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.08); }
.item-card .item-body { padding: 22px 24px; }
.item-card .item-body h5 { margin-bottom: 0; font-size: 1.05rem; }
