/* =========================================================
   OMEGA FACTORY — Precision Tech Industrial Stylesheet
   Deep navy + steel blue (logo) with electric-cyan accent.
   Fonts: Sora (display) + Inter (body).
   ========================================================= */

:root {
  --primary-color: #16273f;   /* deep navy (logo) */
  --primary-light: #24405f;   /* lighter navy */
  --secondary-color: #3f6193; /* steel blue (logo) */
  --secondary-light: #6486b3;
  --accent-color: #00b4d8;    /* electric cyan */
  --accent-dark: #0091b0;
  --text-dark: #14202e;
  --text-muted: #5a6b7d;
  --light-bg: #eef3f8;
  --white: #ffffff;
  --font-display: 'Sora', -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-color: var(--white);
}

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

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

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

/* Section tag: cyan mono-ish label with a leading bar */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--accent-color);
  display: inline-block;
}
.text-center .section-tag { justify-content: center; }

.section-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (max-width: 767px) { .section-title { font-size: 1.7rem; } }

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

/* ===================== BUTTONS (sharp / engineered 3px) ===================== */
.btn-brand {
  background-color: var(--accent-color);
  color: #06222b;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 3px;
  letter-spacing: .3px;
  transition: all .25s ease;
}
.btn-brand:hover {
  background-color: var(--accent-dark);
  color: #041a22;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,180,216,0.28);
}
.btn-brand-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.75);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 3px;
}
.btn-brand-outline:hover { background-color: var(--white); color: var(--primary-color); }
.btn-brand-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 3px;
}
.btn-brand-secondary:hover { background-color: var(--primary-light); color: var(--white); transform: translateY(-2px); }

/* ===================== TOP BAR ===================== */
.top-bar {
  background-color: var(--primary-color);
  color: #cdd9e6;
  font-size: 0.82rem;
  padding: 9px 0;
  letter-spacing: .2px;
}
.top-bar a { color: #cdd9e6; }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { margin-right: 7px; color: var(--accent-color); }

/* ===================== NAVBAR ===================== */
.main-navbar {
  background-color: var(--white);
  padding: 14px 0;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 2px 18px rgba(22,39,63,0.07);
  transition: all .3s ease;
}
.main-navbar.scrolled { padding: 8px 0; box-shadow: 0 6px 22px rgba(22,39,63,0.12); }
.main-navbar .navbar-brand img { height: 48px; }
.main-navbar .nav-link {
  color: var(--primary-color);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 13px;
  padding: 8px 0 !important;
  position: relative;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover { color: var(--accent-dark); }
.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; padding: 10px 20px; }

/* ===================== HERO SLIDER ===================== */
.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(15,24,40,0.94) 0%, rgba(18,32,52,0.82) 45%, rgba(22,39,63,0.42) 100%);
}
/* thin cyan tech line at bottom of hero */
.hero-slide::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-color), transparent 70%);
  z-index: 2;
}
.hero-slide .container { position: relative; z-index: 3; }
.hero-slide .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-color);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.hero-slide .hero-tag::before { content:''; width: 34px; height: 2px; background: var(--accent-color); }
.hero-slide h1 {
  color: var(--white);
  font-size: 3.3rem;
  line-height: 1.12;
  font-weight: 700;
  max-width: 780px;
}
.hero-slide p {
  color: #d7e0ec;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 22px 0 34px;
}
@media (max-width: 767px) {
  .hero-slide { height: 80vh; min-height: 480px; }
  .hero-slide h1 { font-size: 2.1rem; }
  .hero-slide p { font-size: 1rem; }
}
.hero-slider .carousel-indicators { bottom: 22px; }
.hero-slider .carousel-indicators button {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  width: 12px; height: 12px; border-radius: 0;
  transform: rotate(45deg);
  opacity: .8;
  margin: 0 6px;
}
.hero-slider .carousel-indicators button.active { background-color: var(--accent-color); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; opacity: 0.65; }

/* ===================== PAGE HERO (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(15,24,40,0.93) 0%, rgba(22,39,63,0.78) 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-color), transparent 65%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.7rem; margin-bottom: 10px; }
.page-hero .breadcrumb-custom { color: #b7c6d8; font-weight: 500; font-size: 0.95rem; }
.page-hero .breadcrumb-custom a { color: var(--accent-color); }
.page-hero .breadcrumb-custom a:hover { color: var(--white); }

/* ===================== ABOUT ===================== */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 6px;
  width: 100%;
  box-shadow: 0 24px 50px rgba(22,39,63,0.22);
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  top: 18px; left: 18px;
  width: 70px; height: 70px;
  border-top: 3px solid var(--accent-color);
  border-left: 3px solid var(--accent-color);
  z-index: 2;
}
.about-img-wrap .badge-float {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 26px;
  border-radius: 6px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  text-align: center;
}
@media (max-width: 991px) { .about-img-wrap .badge-float { right: 12px; } }
.about-img-wrap .badge-float .num {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700;
  color: var(--accent-color); display: block; line-height: 1;
  margin-bottom: 4px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 2px;
  width: 21px; height: 21px;
  background-color: var(--accent-color);
  color: #06222b;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}

/* ===================== WHY CHOOSE US — dark band, feature cards ===================== */
.why-section {
  background-color: var(--primary-color);
  background-image:
    radial-gradient(circle at 12% 20%, rgba(0,180,216,0.10), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(63,97,147,0.22), transparent 45%);
  color: #d7e0ec;
}
.why-section .section-title { color: var(--white); }
.why-section .section-tag { color: var(--accent-color); }
.feature-card {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  padding: 34px 28px;
  height: 100%;
  text-align: left;
  transition: all .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  background-color: rgba(255,255,255,0.07);
  border-color: var(--accent-color);
  box-shadow: 0 18px 38px rgba(0,0,0,0.35);
}
.feature-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 8px;
  background-color: rgba(0,180,216,0.14);
  color: var(--accent-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 22px;
  transition: all .3s ease;
}
.feature-card:hover .icon-wrap { background-color: var(--accent-color); color: #06222b; }
.feature-card h5 { color: var(--white); font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: #a9b8c9; font-size: 0.94rem; margin-bottom: 0; }

/* ===================== CTA ===================== */
.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(15,24,40,0.94) 0%, rgba(22,39,63,0.86) 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: #c3d0de; margin-bottom: 0; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ===================== PRODUCTS ===================== */
.product-card {
  background-color: var(--white);
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(22,39,63,0.07);
  transition: all .3s ease;
  height: 100%;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 2;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(22,39,63,0.16);
  border-color: transparent;
}
.product-card .product-img { height: 240px; overflow: hidden; }
.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; }
.product-card .product-body h5 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.product-card .product-body h5 i { color: var(--accent-color); font-size: 1rem; transition: transform .25s ease; }
.category-card-link:hover .product-body h5 i { transform: translateX(5px); }

.category-card-link { display: block; color: inherit; text-decoration: none; }
.category-card-link:hover .product-body h5 { color: var(--accent-dark); }

/* ===================== ITEM CARDS (category pages) ===================== */
.item-card {
  background-color: var(--white);
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(22,39,63,0.07);
  transition: all .3s ease;
  height: 100%;
}
.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(22,39,63,0.15);
  border-color: var(--accent-color);
}
.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(--accent-color); }
.item-card .item-body h5 { margin-bottom: 0; font-family: var(--font-display); font-size: 1.02rem; }

/* ===================== MISSION / VISION / VALUES ===================== */
.mv-card {
  background-color: var(--white);
  border: 1px solid #e3eaf2;
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
  padding: 38px 34px;
  height: 100%;
  box-shadow: 0 8px 26px rgba(22,39,63,0.07);
  transition: all .3s ease;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(22,39,63,0.14); }
.mv-card:nth-child(2) .mv-inner, .mv-card .mv-inner { }
.mv-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
  background-color: rgba(0,180,216,0.12);
  width: 58px; height: 58px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.mv-card h4 { margin-bottom: 12px; font-size: 1.3rem; }
.mv-card p { color: var(--text-muted); margin-bottom: 0; }

.value-pill {
  background-color: var(--white);
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  padding: 28px 22px;
  text-align: center;
  height: 100%;
  box-shadow: 0 8px 22px rgba(22,39,63,0.06);
}
.value-pill i {
  font-size: 1.6rem;
  color: var(--accent-color);
  background-color: rgba(0,180,216,0.12);
  width: 56px; height: 56px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px;
}
.value-pill h6 { font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; }
.value-pill p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* ===================== CONTACT ===================== */
.contact-info-card {
  background-color: var(--primary-color);
  background-image: radial-gradient(circle at 85% 15%, rgba(0,180,216,0.14), transparent 45%);
  color: var(--white);
  border-radius: 6px;
  padding: 42px 34px;
  height: 100%;
}
.contact-info-card h4 { color: var(--white); margin-bottom: 26px; }
.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 26px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .ci-icon {
  width: 46px; height: 46px;
  background-color: var(--accent-color);
  color: #06222b;
  border-radius: 6px;
  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.7rem; margin-bottom: 4px; font-weight: 600;
}
.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 #e3eaf2;
  border-radius: 6px;
  padding: 42px;
  box-shadow: 0 8px 30px rgba(22,39,63,0.08);
}
.contact-form-wrap .form-control {
  border: 1px solid #d7e0ea;
  padding: 12px 16px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.contact-form-wrap .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.16);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background-color: #101d30;
  color: #a9b8c9;
}
.site-footer .footer-top { padding: 72px 0 44px; }
.site-footer h5 {
  color: var(--white); font-family: var(--font-display);
  font-size: 1.02rem; margin-bottom: 22px;
  position: relative; padding-bottom: 12px;
}
.site-footer h5::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; background-color: var(--accent-color);
}
.site-footer .footer-brand-text {
  color: var(--white); font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  line-height: 1.3;
}
.site-footer .footer-brand-text img { height: 42px; }
.site-footer p { font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; display: flex; align-items: flex-start; }
.site-footer ul li a { color: #a9b8c9; font-size: 0.93rem; }
.site-footer ul li a:hover { color: var(--accent-color); padding-left: 3px; }
.site-footer .footer-top 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: #8ea0b4;
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  background-color: var(--accent-color);
  color: #06222b;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,180,216,0.4);
  opacity: 0; visibility: hidden;
  transition: all .3s ease; z-index: 999; font-size: 1.15rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--accent-dark); 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: 40px; }
  .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 #eef2f6;
    margin-top: 8px;
  }
  .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 ===================== */
.main-navbar .dropdown-menu {
  border: none; border-radius: 6px;
  box-shadow: 0 16px 36px rgba(22,39,63,0.18);
  padding: 10px; margin-top: 8px; min-width: 250px;
  border-top: 3px solid var(--accent-color);
}
.main-navbar .dropdown-item {
  color: var(--primary-color); font-weight: 500;
  padding: 10px 16px; border-radius: 4px; font-size: 0.92rem;
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: rgba(0,180,216,0.09); color: var(--accent-dark);
}
.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; }
}
