/* ==========================================================================
   BESTEC MARINE ENGINEERING - STANDARDIZED HEADER & FOOTER STYLESHEET
   Inspired by Landspect SG Modern Corporate Architecture
   ========================================================================== */

:root {
  --primary-navy: #092a4b;
  --primary-navy-dark: #061d35;
  --accent-blue: #1c64a1;
  --accent-blue-hover: #154c7d;
  --accent-cyan: #00a8ff;
  --accent-green: #6bb62e;
  --accent-green-hover: #5ca125;
  --text-dark: #222b45;
  --text-muted: #64748b;
  --footer-bg: #0a1628;
  --footer-bottom: #060e1a;
  --footer-text: #94a3b8;
  --footer-heading: #f8fafc;
}

/* --------------------------------------------------------------------------
   Top Bar
   -------------------------------------------------------------------------- */
#topbar {
  background-color: var(--primary-navy) !important;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 999;
}

#topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1440px !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#topbar .contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

#topbar .contact-info a,
#topbar .contact-info span {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

#topbar .contact-info a:hover {
  color: var(--accent-cyan);
}

#topbar .contact-info i {
  color: var(--accent-cyan);
  font-size: 14px;
}

#topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

#topbar .social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

#topbar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  cursor: pointer;
}

#topbar .social-links a.whatsapp {
  background: #25d366;
}

#topbar .social-links a.linkedin {
  background: #0077b5;
}

#topbar .social-links a.facebook {
  background: #1877f2;
}

#topbar .social-links a.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

#topbar .social-links a.twitter {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

#topbar .social-links a:hover {
  transform: translateY(-2.5px) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  color: #ffffff !important;
}

#topbar .social-links a.whatsapp:hover {
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
}

#topbar .social-links a.linkedin:hover {
  box-shadow: 0 4px 14px rgba(0, 119, 181, 0.5);
}

#topbar .social-links a.facebook:hover {
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.5);
}

#topbar .social-links a.instagram:hover {
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.5);
}

#topbar .social-links a.twitter:hover {
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

#topbar .topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-blue);
  color: #ffffff !important;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(28, 100, 161, 0.3);
}

#topbar .topbar-cta:hover {
  background: #0084ff;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.4);
}

#topbar .topbar-cta i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

#topbar .topbar-cta:hover i {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
#header {
  background: #ffffff !important;
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 9999 !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#header.header-scrolled,
#header.fixed-top {
  height: 70px;
  z-index: 9999 !important;
  box-shadow: 0 4px 20px rgba(9, 42, 75, 0.12);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#header .logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

#header .logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#header .logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

#header.header-scrolled .logo img,
#header.fixed-top .logo img {
  max-height: 46px;
}

/* Desktop Navbar */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.2px !important;
  text-transform: uppercase !important;
  color: #334155 !important;
  white-space: nowrap;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.navbar a i,
.navbar a:focus i {
  font-size: 11px;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--accent-blue);
  background: rgba(28, 100, 161, 0.06);
}

.navbar li:hover>a i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.navbar .dropdown {
  position: relative;
}

@media (min-width: 992px) {
  .navbar .dropdown ul {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(9, 42, 75, 0.18) !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    min-width: 270px !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
    transform: translateY(6px) !important;
  }

  .navbar .dropdown:hover>ul {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

.navbar .dropdown ul li {
  min-width: 260px !important;
}

.navbar .dropdown ul a {
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  color: #334155 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-left: 3px solid transparent !important;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active,
.navbar .dropdown ul li:hover>a {
  color: var(--accent-blue) !important;
  background: #f8fafc !important;
  border-left: 3px solid var(--accent-blue) !important;
  padding-left: 22px !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  color: var(--primary-navy);
  cursor: pointer;
  line-height: 0;
  transition: 0.3s;
}

/* Laptop & Compact Desktop Screen Fit (992px to 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {

  #topbar .container,
  #header .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #header .logo img {
    max-height: 36px;
  }

  .navbar ul {
    gap: 1px;
  }

  .navbar a,
  .navbar a:focus {
    padding: 6px 7px;
    font-size: 12px;
  }

  .navbar a i,
  .navbar a:focus i {
    margin-left: 3px;
    font-size: 10px;
  }
}

@media (max-width: 991px) {
  #header .logo img {
    max-height: 36px;
  }
}

@media (max-width: 575px) {
  #header .logo img {
    max-height: 30px;
  }
}

@media (max-width: 991px) {
  #topbar .contact-info {
    font-size: 12px;
    gap: 12px;
  }

  #topbar .topbar-right {
    gap: 10px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

/* Mobile Navigation Mode */
.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(9, 42, 75, 0.85);
  backdrop-filter: blur(8px);
  transition: 0.3s;
  z-index: 9999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 22px;
  right: 25px;
  color: #ffffff;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 65px;
  right: 15px;
  bottom: 25px;
  left: 15px;
  padding: 20px 0;
  background-color: #ffffff;
  overflow-y: auto;
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 12px 25px;
  font-size: 15px;
  color: #1e293b;
  border-radius: 0;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: var(--accent-blue);
  background: #f1f5f9;
}

.navbar-mobile .dropdown ul {
  position: static !important;
  display: none !important;
  margin: 8px 15px !important;
  padding: 5px 0 !important;
  z-index: 99 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  transform: none !important;
  min-width: 0 !important;
  width: auto !important;
}

.navbar-mobile .dropdown ul.dropdown-active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.navbar-mobile .dropdown>a.dropdown-active i {
  transform: rotate(180deg) !important;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Modern Corporate Footer (Landspect SG Corporate Architecture)
   -------------------------------------------------------------------------- */
#footer {
  background-color: #0b1329 !important;
  color: #94a3b8;
  font-size: 13.5px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #1c64a1 0%, #00a8ff 60%, #0066cc 100%) 1;
}

#footer .footer-top {
  padding: 38px 0 24px 0;
  background: transparent;
}

#footer .container {
  max-width: 1320px !important;
}

#footer .footer-main-row {
  align-items: flex-start;
}

#footer .footer-brand-wrap {
  margin-bottom: 16px;
  max-width: 100%;
}

#footer .footer-logo-card {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
}

#footer .footer-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.25);
}

#footer .footer-brand-logo {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

#footer .footer-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 3px 10px;
  background: rgba(0, 168, 255, 0.12);
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

#footer .footer-brand-badge i {
  font-size: 12px;
  color: #00a8ff;
}

#footer .footer-about-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 14px 0 16px 0;
  max-width: 320px;
}

#footer .footer-social-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 12px 0;
  display: block;
}

#footer .footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

#footer .footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#footer .footer-social-links a.whatsapp {
  background: #25d366 !important;
  border-color: rgba(37, 211, 102, 0.5) !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

#footer .footer-social-links a.linkedin {
  background: #0077b5 !important;
  border-color: rgba(0, 119, 181, 0.5) !important;
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.35);
}

#footer .footer-social-links a.facebook {
  background: #1877f2 !important;
  border-color: rgba(24, 119, 242, 0.5) !important;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35);
}

#footer .footer-social-links a.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  border-color: rgba(220, 39, 67, 0.5) !important;
  box-shadow: 0 2px 8px rgba(220, 39, 67, 0.35);
}

#footer .footer-social-links a.twitter {
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

#footer .footer-social-links a:hover {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(1.15);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* KeepFlying.aero Style Ask AI Footer Section */
#footer .footer-ask-ai-keepflying {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

#footer .footer-ask-ai-prefix,
#footer .footer-ask-ai-suffix {
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.2px;
  user-select: none;
}

#footer .footer-ai-glass-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

#footer .footer-ai-glass-btn .ai-svg {
  transition: transform 0.25s ease;
}

/* ChatGPT (OpenAI Emerald Green Accent) */
#footer .footer-ai-glass-btn.chatgpt {
  color: #10a37f !important;
}

#footer .footer-ai-glass-btn.chatgpt:hover {
  background: rgba(16, 163, 127, 0.2) !important;
  border-color: rgba(16, 163, 127, 0.65) !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 14px rgba(16, 163, 127, 0.38);
}

/* Gemini (Google Blue Accent) */
#footer .footer-ai-glass-btn.gemini {
  color: #4285f4 !important;
}

#footer .footer-ai-glass-btn.gemini:hover {
  background: rgba(66, 133, 244, 0.2) !important;
  border-color: rgba(66, 133, 244, 0.65) !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.38);
}

/* Claude (Anthropic Terracotta Accent) */
#footer .footer-ai-glass-btn.claude {
  color: #d97659 !important;
}

#footer .footer-ai-glass-btn.claude:hover {
  background: rgba(217, 118, 89, 0.2) !important;
  border-color: rgba(217, 118, 89, 0.65) !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 14px rgba(217, 118, 89, 0.38);
}

#footer .footer-ai-glass-btn:hover .ai-svg {
  transform: scale(1.12);
}

/* Ask AI Toast Notification */
.footer-ai-toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(11, 19, 41, 0.95);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 168, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-ai-toast i {
  color: #10a37f;
  font-size: 16px;
}

.footer-ai-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#footer h4.footer-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
  border-bottom: none;
}

#footer h4.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2.5px;
  background: #00a8ff;
  border-radius: 2px;
}

#footer .footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links-list li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  border-bottom: none;
  transition: all 0.2s ease;
}

#footer .footer-links-list li i {
  color: #00a8ff;
  font-size: 10px;
  margin-right: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

#footer .footer-links-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  line-height: 1.4;
  display: block;
}

#footer .footer-links-list li:hover i {
  transform: translateX(3px);
  color: #38bdf8;
}

#footer .footer-links-list li:hover a {
  color: #ffffff;
  transform: translateX(2px);
}

#footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: none;
}

#footer .footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 168, 255, 0.15);
  color: #00a8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11.5px;
  margin-top: 2px;
}

#footer .footer-contact-info {
  font-size: 12.5px;
  line-height: 1.45;
  color: #94a3b8;
}

#footer .footer-contact-info strong {
  color: #ffffff;
  display: block;
  font-size: 12.5px;
  margin-bottom: 1px;
}

#footer .footer-contact-info a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer .footer-contact-info a:hover {
  color: #00a8ff;
}

#footer .footer-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0077cc, #0099ff);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none !important;
  margin-top: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.35);
}

#footer .footer-quote-btn:hover {
  background: linear-gradient(135deg, #0099ff, #00b4d8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 153, 255, 0.45);
}

#footer .footer-quote-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

#footer .footer-quote-btn:hover i {
  transform: translateX(3px);
}

@media (min-width: 992px) {
  #footer .footer-col-company {
    flex: 0 0 34% !important;
    max-width: 34% !important;
    padding-right: 25px;
  }

  #footer .footer-col-quicklinks {
    flex: 0 0 18% !important;
    max-width: 18% !important;
    padding-right: 0px !important;
  }

  #footer .footer-col-services {
    flex: 0 0 24% !important;
    max-width: 24% !important;
    padding-left: 0px !important;
    padding-right: 15px;
  }

  #footer .footer-col-contact {
    flex: 0 0 24% !important;
    max-width: 24% !important;
    padding-left: 10px;
  }
}

.back-to-top,
a.back-to-top,
#back-to-top {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (min-width: 768px) and (max-width: 991px) {
  #footer .footer-col-company {
    flex: 0 0 55% !important;
    max-width: 55% !important;
    margin-bottom: 25px;
  }

  #footer .footer-col-quicklinks {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    margin-bottom: 25px;
  }

  #footer .footer-col-services {
    flex: 0 0 55% !important;
    max-width: 55% !important;
  }

  #footer .footer-col-contact {
    flex: 0 0 45% !important;
    max-width: 45% !important;
  }
}

@media (max-width: 767px) {
  #footer {
    padding: 35px 0 20px 0;
  }

  #footer .footer-col-company,
  #footer .footer-col-quicklinks,
  #footer .footer-col-services,
  #footer .footer-col-contact {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }

  #footer .footer-about-desc {
    max-width: 100%;
  }

  #footer .footer-links-list li {
    padding: 8px 0;
  }

  #footer .footer-links-list li a {
    font-size: 13.5px;
  }
}

#footer .footer-bottom-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 20px;
  margin-top: 24px;
}

#footer .footer-bottom-card .d-flex {
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#footer .footer-copyright-text {
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

#footer .footer-copyright-text i {
  color: #00a8ff;
  font-size: 13px;
}

#footer .footer-copyright-text strong {
  color: #e2e8f0;
}

#footer .footer-dev-text {
  font-size: 12.5px;
  color: #94a3b8;
}

#footer .footer-dev-text a {
  color: #00a8ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

#footer .footer-dev-text a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

@media (max-width: 767px) {
  #footer .footer-bottom-card .d-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* Services Grid & Hover Effects */
.services-section {
  padding: 30px 0 65px 0;
  background-color: #f8fafc;
  scroll-margin-top: 90px;
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.services-section .section-subtitle {
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.services-section .section-title {
  font-size: 32px;
  font-weight: 800;
  color: #092a4b;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.services-section .section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1c64a1, #00a8ff);
  border-radius: 999px;
  margin: 0 auto 16px auto;
}

.services-section .section-desc {
  max-width: 680px;
  margin: 0 auto;
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.6;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(9, 42, 75, 0.14);
  border-color: rgba(28, 100, 161, 0.35);
}

.service-card-img-wrap {
  width: 100%;
  aspect-ratio: 300 / 214;
  height: auto;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

.service-card:hover .service-card-img-wrap img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.service-card-img-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: skewX(-25deg);
  z-index: 2;
  pointer-events: none;
  transition: none;
}

.service-card:hover .service-card-img-wrap::before {
  left: 200%;
  transition: left 0.75s ease;
}

.service-card-img-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35px;
  background: linear-gradient(to top, rgba(6, 39, 96, 0.35), transparent);
  pointer-events: none;
  z-index: 1;
}

.service-copy {
  padding: 15px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Paytm-Inspired Subtle Executive Icon Badge */
.icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  background: #f0f6fb;
  color: #1c64a1;
  border: 1px solid rgba(28, 100, 161, 0.12);
  box-shadow: 0 2px 6px rgba(28, 100, 161, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .icon-badge {
  background: #1c64a1;
  color: #ffffff;
  border-color: #1c64a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(28, 100, 161, 0.22);
}

.icon-badge.blue {
  background-color: #f0f6fb;
  color: #1c64a1;
  border-color: rgba(28, 100, 161, 0.14);
}

.icon-badge.green {
  background-color: #f0fbf4;
  color: #168a44;
  border-color: rgba(22, 138, 68, 0.14);
}

.icon-badge.yellow {
  background-color: #fdfbf0;
  color: #b47d0b;
  border-color: rgba(180, 125, 11, 0.14);
}

.icon-badge.cyan {
  background-color: #f0f9fb;
  color: #0c829e;
  border-color: rgba(12, 130, 158, 0.14);
}

.icon-badge.orange {
  background-color: #fdf6f0;
  color: #cc5410;
  border-color: rgba(204, 84, 16, 0.14);
}

.icon-badge.purple {
  background-color: #f7f4fc;
  color: #6e3fc9;
  border-color: rgba(110, 63, 201, 0.14);
}

.icon-badge.rose {
  background-color: #fcf1f3;
  color: #cb224b;
  border-color: rgba(203, 34, 75, 0.14);
}

.icon-badge.teal {
  background-color: #f0faf8;
  color: #0f857a;
  border-color: rgba(15, 133, 122, 0.14);
}

.service-heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.service-card:hover .service-heading {
  color: #1c64a1;
}

.service-description {
  font-size: 12.8px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1c64a1 0%, #062760 100%);
  text-decoration: none !important;
  margin: 8px auto 0 auto;
  padding: 6px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(6, 39, 96, 0.2);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.service-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent);
  transition: left 0.5s ease;
}

.service-link:hover::before {
  left: 100%;
}

.service-link i {
  font-size: 12px;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-link,
.service-link:hover {
  background: linear-gradient(135deg, #72bc3f 0%, #5fae32 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(114, 188, 63, 0.4);
  transform: translateY(-2px);
}

.service-card:hover .service-link i,
.service-link:hover i {
  transform: translateX(4px);
}

.bi-twitter-x,
i.bi-twitter-x {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  background-color: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865l8.875 11.633Z'/%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865l8.875 11.633Z'/%3E%3C/svg%3E") no-repeat center / contain !important;
  vertical-align: -0.15em !important;
}

/* Floating Scroll Navigation (Scroll to Top only - Placed above chat dock) */
.scroll-nav-dock {
  position: fixed;
  right: 18px;
  bottom: 180px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.chat-open .scroll-nav-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.scroll-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 3px 12px rgba(28, 100, 161, 0.4);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
}

.scroll-nav-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-nav-btn:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 16px rgba(0, 168, 255, 0.5);
}

.scroll-nav-btn.scroll-bottom-btn,
#scroll-to-bottom {
  display: none !important;
}

/* Theme Toggle */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 10px;
}

.theme-toggle-btn:hover {
  background: #e2e8f0;
  color: #0077cc;
  transform: rotate(20deg);
}

body.dark-mode {
  background-color: #0a1124 !important;
  color: #cbd5e1 !important;
}

body.dark-mode #topbar {
  background-color: var(--primary-navy) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #topbar .contact-info a {
  color: #e2e8f0 !important;
}

body.dark-mode #topbar .contact-info a:hover {
  color: var(--accent-cyan) !important;
}

body.dark-mode #header {
  background: #09152b !important;
  border-bottom: 1px solid rgba(0, 168, 255, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode #header.header-scrolled,
body.dark-mode #header.fixed-top {
  background: #060e1d !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode #header .logo a,
html.dark #header .logo a {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  box-shadow: none !important;
  border: none !important;
}

body.dark-mode #header .logo img,
html.dark #header .logo img {
  filter: none !important;
  opacity: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.dark-mode .navbar a,
body.dark-mode .navbar a:focus {
  color: #e2e8f0 !important;
}

body.dark-mode .navbar a:hover,
body.dark-mode .navbar .active,
body.dark-mode .navbar li:hover>a {
  color: #38bdf8 !important;
  background: transparent !important;
}

body.dark-mode .navbar .dropdown ul {
  background: #0b1733 !important;
  border: 1px solid rgba(0, 168, 255, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .navbar .dropdown ul a {
  color: #cbd5e1 !important;
}

body.dark-mode .navbar .dropdown ul a:hover {
  color: #38bdf8 !important;
  background: rgba(0, 168, 255, 0.12) !important;
}

body.dark-mode .theme-toggle-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #fbbf24;
}

body.dark-mode .theme-toggle-btn:hover {
  background: #334155;
  color: #f59e0b;
}

body.dark-mode .services-section {
  background-color: #070e1a !important;
}

body.dark-mode .services-section .section-title {
  color: #ffffff !important;
}

body.dark-mode .services-section .section-desc {
  color: #94a3b8 !important;
}

body.dark-mode .service-card {
  background: #0e1a32 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .service-card:hover {
  border-color: rgba(0, 168, 255, 0.4) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55) !important;
}

body.dark-mode .service-heading {
  color: #f8fafc !important;
}

body.dark-mode .service-card:hover .service-heading {
  color: #38bdf8 !important;
}

body.dark-mode .service-description {
  color: #94a3b8 !important;
}

/* Compact Marine Chatbot Dock */
.bestec-chatbot-dock {
  position: fixed;
  bottom: 15px;
  right: 18px;
  left: auto;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: inherit;
}

/* AI Lab Technologies Style 3-Mode Theme Switcher Dropdown */
.theme-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 6px;
  z-index: 1055;
}

.theme-dropdown-menu {
  position: absolute;
  bottom: 44px;
  right: 0;
  background: #091629;
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 125px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1060;
  animation: themeMenuFade 0.2s ease;
}

.theme-dropdown.open .theme-dropdown-menu {
  display: flex;
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.2s ease;
}

.theme-opt-btn:hover {
  background: rgba(0, 168, 255, 0.15);
  color: #ffffff;
}

.theme-opt-btn.active {
  background: linear-gradient(135deg, #0072c6 0%, #00a8ff 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 168, 255, 0.4);
}

body:not(.dark-mode) .theme-dropdown-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(9, 42, 75, 0.15);
}

body:not(.dark-mode) .theme-opt-btn {
  color: #334155;
}

body:not(.dark-mode) .theme-opt-btn:hover {
  background: #f1f5f9;
  color: #0072c6;
}

body:not(.dark-mode) .theme-opt-btn.active {
  background: linear-gradient(135deg, #0072c6 0%, #00a8ff 100%);
  color: #ffffff;
}

@keyframes themeMenuFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-theme-toggle-btn,
.fab-btn.fab-theme {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #09152b;
  border: 1px solid rgba(0, 168, 255, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.floating-theme-toggle-btn:hover,
.fab-btn.fab-theme:hover {
  background: #102447;
  border-color: #00a8ff;
  color: #ffffff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 168, 255, 0.4);
}

body.dark-mode .floating-theme-toggle-btn,
body.dark-mode .fab-btn.fab-theme {
  background: #1e293b;
  border-color: #00a8ff;
  color: #38bdf8;
  box-shadow: 0 3px 12px rgba(0, 168, 255, 0.25);
}

/* Header & Footer Logo Adjustment for Dark Mode - Transparent Option 1 Badge & White Text */
body.dark-mode #header .logo img,
body.dark-mode .footer-brand-logo,
body.dark-mode .footer-logo-img,
body.dark-theme #header .logo img,
html.dark #header .logo img {
  filter: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transition: filter 0.3s ease, transform 0.3s ease;
}

body.dark-mode #header .logo a,
html.dark #header .logo a,
body.dark-mode .logo a,
html.dark .logo a {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.dark-mode #footer .footer-logo-card,
html.dark #footer .footer-logo-card,
[data-theme="dark"] #footer .footer-logo-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* Professional Navbar Brochure Button */
.navbar a.nav-brochure-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(0, 114, 198, 0.08);
  border: 1px solid rgba(0, 114, 198, 0.25);
  padding: 6px 14px !important;
  border-radius: 20px;
  color: var(--accent-blue) !important;
  font-weight: 700;
  transition: all 0.25s ease;
}

.navbar a.nav-brochure-link:hover {
  background: var(--accent-blue);
  color: #ffffff !important;
  border-color: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 114, 198, 0.3);
}

body.dark-mode .navbar a.nav-brochure-link {
  background: rgba(0, 168, 255, 0.15);
  border-color: rgba(0, 168, 255, 0.4);
  color: #38bdf8 !important;
}

body.dark-mode .navbar a.nav-brochure-link:hover {
  background: #0072c6;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.4);
}

.bestec-chat-teaser {
  background: #09152b;
  border: 1px solid rgba(0, 168, 255, 0.4);
  color: #f8fafc;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: teaserBounce 3s infinite;
}

.bestec-chat-teaser:hover {
  background: #101e40;
  border-color: #00a8ff;
  transform: translateY(-1px);
}

.bestec-chat-teaser .teaser-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px #22c55e;
}

.bestec-chat-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077cc 0%, #00a8ff 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 168, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bestec-chat-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 5px 16px rgba(0, 168, 255, 0.55);
}

.bestec-chat-btn .btn-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid #00a8ff;
  animation: chatPulse 2.5s infinite;
  pointer-events: none;
}

@keyframes chatPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.2);
    opacity: 0;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.bestec-chat-window {
  position: fixed;
  bottom: 72px;
  right: 18px;
  left: auto;
  width: 315px;
  max-width: calc(100vw - 28px);
  height: 415px;
  max-height: calc(100vh - 90px);
  background: #0d172e;
  border: 1px solid rgba(0, 168, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bestec-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.bestec-chat-header {
  background: linear-gradient(135deg, #0b1329 0%, #101e40 100%);
  border-bottom: 1px solid rgba(0, 168, 255, 0.25);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bestec-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bestec-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bestec-chat-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bestec-chat-title-wrap h5 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.bestec-chat-status {
  font-size: 9.5px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.bestec-chat-status .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px #22c55e;
}

.bestec-chat-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bestec-chat-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.bestec-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #080e1d;
}

.bestec-chat-body::-webkit-scrollbar {
  width: 4px;
}

.bestec-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  font-size: 11.5px;
  line-height: 1.45;
  border-radius: 10px;
  padding: 7px 11px;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #132247;
  color: #e2e8f0;
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-bottom-left-radius: 3px;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0077cc 0%, #00a8ff 100%);
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.chat-time {
  font-size: 9px;
  color: #64748b;
  margin-top: 3px;
  align-self: flex-end;
}

.chat-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.chat-chip-btn {
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid rgba(0, 168, 255, 0.3);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-chip-btn:hover {
  background: rgba(0, 168, 255, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateX(2px);
}

.chat-direct-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none !important;
  margin-top: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.chat-direct-wa-btn:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.bestec-chat-footer {
  padding: 8px 10px;
  background: #0d172e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 6px;
  align-items: center;
}

.bestec-chat-input {
  flex: 1;
  background: #080e1d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 6px 11px;
  font-size: 12px;
  height: 32px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.bestec-chat-input:focus {
  border-color: #00a8ff;
}

.bestec-chat-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00a8ff;
  border: none;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bestec-chat-send:hover {
  background: #38bdf8;
  transform: scale(1.05);
}

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

@media (max-width: 575px) {
  .bestec-chatbot-dock {
    bottom: 14px;
    right: 12px;
    left: auto;
    align-items: flex-end;
  }

  .bestec-chat-window {
    right: 12px;
    left: auto;
    bottom: 66px;
    width: calc(100vw - 24px);
    max-width: 315px;
    height: 380px;
    max-height: 60vh;
  }

  .scroll-nav-dock {
    right: 12px;
    bottom: 180px;
  }
}

/* ==========================================================================
   EXECUTIVE HERO CAROUSEL (State-of-the-Art Marine Screen Fit & Layout)
   ========================================================================== */
#hero {
  width: 100%;
  height: calc(100vh - 120px) !important;
  min-height: 520px;
  max-height: 640px;
  position: relative;
  background: #061122;
  overflow: hidden;
  padding: 0;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  width: 100%;
  height: 100%;
  position: relative;
}

#hero .carousel-item {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

/* Smooth Crossfade Transition */
#hero .carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: none !important;
}

#hero .carousel.carousel-fade .carousel-item.active,
#hero .carousel.carousel-fade .carousel-item-next.carousel-item-start,
#hero .carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 2;
}

#hero .carousel.carousel-fade .active.carousel-item-start,
#hero .carousel.carousel-fade .active.carousel-item-end {
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Marine High-Grade Gradient Overlay (Optimized for crystal clear typography with more image visibility) */
#hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(5, 14, 28, 0.92) 0%,
      rgba(8, 22, 42, 0.74) 42%,
      rgba(6, 17, 34, 0.20) 100%);
  z-index: 1;
}

/* Subtle Logo Green Accent Glow */
#hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 45%, rgba(114, 188, 63, 0.12) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* Ken Burns subtle zoom */
#hero .carousel-item.active {
  animation: heroKenBurns 14s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

/* Vertically Centered Content Container */
#hero .hero-content-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
}

#hero .hero-slide-card {
  max-width: 820px;
  text-align: left;
}

/* Category Badge with Bestec Logo Green Accent */
#hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(114, 188, 63, 0.15);
  border: 1px solid rgba(114, 188, 63, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #8de24a;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(114, 188, 63, 0.2);
}

#hero .hero-badge i {
  color: #72bc3f;
  font-size: 13px;
}

/* Executive Heading Typography */
#hero .hero-title {
  color: #ffffff;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

#hero .hero-title span {
  color: #72bc3f;
  background: linear-gradient(135deg, #8de24a 0%, #66b533 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle Description */
#hero .hero-desc {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Hero Action Button Group */
#hero .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

#hero .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1c64a1 0%, #062760 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(6, 39, 96, 0.4);
  border: 1px solid rgba(114, 188, 63, 0.35);
}

#hero .btn-hero-primary:hover {
  background: linear-gradient(135deg, #72bc3f 0%, #5fae32 100%);
  border-color: #72bc3f;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(114, 188, 63, 0.45);
}

#hero .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

#hero .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #72bc3f;
  color: #8de24a !important;
  transform: translateY(-2px);
}

/* Modern Dotted Carousel Indicators - Centered with Bestec Corporate Logo Styling */
#hero .hero-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  display: flex !important;
  align-items: center;
  gap: 7px;
  z-index: 25;
  margin: 0;
  padding: 6px 14px;
  background: rgba(6, 39, 96, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  list-style: none;
  max-width: 90vw;
  overflow-x: auto;
}

#hero .hero-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

#hero .hero-indicators button:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

#hero .hero-indicators button.active {
  width: 22px;
  border-radius: 6px;
  background: #72bc3f;
  box-shadow: 0 0 10px rgba(114, 188, 63, 0.85);
}

#hero .hero-nav-arrow,
#hero .carousel-control-prev,
#hero .carousel-control-next {
  display: none !important;
}

@media (max-width: 991px) {
  #hero {
    height: 75vh !important;
    min-height: 520px;
  }

  #hero .hero-title {
    font-size: 32px;
  }

  #hero .hero-desc {
    font-size: 14.5px;
    margin-bottom: 22px;
  }
}

@media (max-width: 767px) {
  #hero {
    height: 80vh !important;
    min-height: 480px;
  }

  #hero .hero-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  #hero .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  #hero .hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  #hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #hero .btn-hero-primary,
  #hero .btn-hero-secondary {
    justify-content: center;
    padding: 10px 18px;
    font-size: 13.5px;
  }
}

/* ==========================================================================
   BESTEC MARINE GALLERY - MODERN PROFESSIONAL UI/UX DESIGN & FAST LOADING
   ========================================================================== */

/* Gallery Hero Banner */
.gallery-hero-banner {
  position: relative;
  background: linear-gradient(135deg, #07192f 0%, #0d2e54 60%, #0b3b6f 100%);
  padding: 55px 0 45px 0;
  overflow: hidden;
  border-bottom: 3px solid #1c64a1;
}

.gallery-hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(28, 100, 161, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.gallery-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(107, 182, 46, 0.14);
  border: 1px solid rgba(107, 182, 46, 0.45);
  color: #6bb62e;
  margin-bottom: 12px;
}

.gallery-hero-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.gallery-hero-subtitle {
  color: #cbd5e1;
  font-size: 14.5px;
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 0;
}

.gallery-hero-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.gallery-stat-box {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  min-width: 100px;
}

.gallery-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #6bb62e;
  line-height: 1;
}

.gallery-stat-label {
  font-size: 10.5px;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
  font-weight: 600;
}

/* Modern Interactive Filter Pills */
.gallery-filter-wrap {
  margin: 35px 0 28px 0;
  display: flex;
  justify-content: center;
}

/* Gallery Interactive Control Toolbar */
.gallery-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px auto 18px auto;
  max-width: 1200px;
}

.gallery-search-wrap {
  position: relative;
  flex: 1 1 360px;
  max-width: 520px;
}

.gallery-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #1c64a1;
  font-size: 15px;
  pointer-events: none;
}

.gallery-search-input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-search-input:focus {
  border-color: #1c64a1;
  box-shadow: 0 0 0 3px rgba(28, 100, 161, 0.18), 0 4px 14px rgba(0, 0, 0, 0.06);
}

body.dark-mode .gallery-search-input {
  background: #0d1e38;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
}

body.dark-mode .gallery-search-input:focus {
  border-color: #6bb62e;
  box-shadow: 0 0 0 3px rgba(107, 182, 46, 0.22);
}

.gallery-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.gallery-count-badge {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
}

body.dark-mode .gallery-count-badge {
  background: #0d1e38;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.1);
}

.gallery-count-badge strong {
  color: #1c64a1;
}

body.dark-mode .gallery-count-badge strong {
  color: #6bb62e;
}

/* Individual Segmented Filter Pills */
.gallery-filter-wrap {
  margin: 10px 0 32px 0;
  display: flex;
  justify-content: center;
}

#portfolio-flters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#portfolio-flters li {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  background: #ffffff;
  border: 1.5px solid #d1d9e2;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

body.dark-mode #portfolio-flters li {
  background: #0d1e38;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#portfolio-flters li:hover {
  color: #1c64a1;
  border-color: #1c64a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(28, 100, 161, 0.16);
  background: rgba(28, 100, 161, 0.04);
}

body.dark-mode #portfolio-flters li:hover {
  color: #6bb62e;
  border-color: #6bb62e;
  box-shadow: 0 6px 18px rgba(107, 182, 46, 0.22);
}

#portfolio-flters li.filter-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #062760 0%, #092a4b 45%, #1c64a1 100%) !important;
  border-color: #1c64a1 !important;
  box-shadow: 0 6px 18px rgba(6, 39, 96, 0.35) !important;
  transform: translateY(-2px);
}

.filter-cnt {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #475569;
  line-height: 1;
  transition: all 0.25s ease;
}

body.dark-mode .filter-cnt {
  background: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

#portfolio-flters li.filter-active .filter-cnt {
  background: #6bb62e !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(107, 182, 46, 0.45);
}

/* Professional Gallery Card - Crisp Corporate Finish */
.portfolio-container {
  /* Immediate stable layout */
}

.portfolio-item {
  margin-bottom: 24px;
}

.gallery-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(9, 42, 75, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform, box-shadow;
}

body.dark-mode .gallery-card {
  background: #0f1f3a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(9, 42, 75, 0.12), 0 3px 8px rgba(28, 100, 161, 0.08);
  border-color: #1c64a1;
}

body.dark-mode .gallery-card:hover {
  box-shadow: 0 16px 32px rgba(107, 182, 46, 0.22);
  border-color: #6bb62e;
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 11px 11px 0 0;
  cursor: pointer;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.06);
}

/* Hover Overlay & Zoom Action - Clean Corporate Wash */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 39, 96, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.35s ease;
  z-index: 2;
  cursor: pointer;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #062760 !important;
  font-size: 19px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, background-color 0.25s ease, color 0.25s ease;
  border: none;
}

.gallery-card:hover .gallery-zoom-btn {
  transform: scale(1);
  opacity: 1;
}

.gallery-zoom-btn:hover {
  background: #1c64a1;
  color: #ffffff !important;
  transform: scale(1.12);
}

/* Card Caption Info */
.gallery-info {
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

body.dark-mode .gallery-info {
  background: #0f1f3a;
  border-top-color: rgba(255, 255, 255, 0.06);
}

.gallery-cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #1c64a1;
  margin-bottom: 4px;
  display: inline-block;
}

body.dark-mode .gallery-cat-badge {
  color: #6bb62e;
}

.gallery-card h6 {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f2744;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.gallery-card:hover h6 {
  color: #1c64a1;
}

body.dark-mode .gallery-card h6 {
  color: #f1f5f9;
}

/* ==========================================================================
   BESTEC MARINE AI INTELLIGENCE EXPLANATION MODAL (ChatGPT, Gemini, Claude)
   ========================================================================== */
.bestec-ai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.bestec-ai-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bestec-ai-modal-container {
  background: #0b1528;
  color: #e2e8f0;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  border-radius: 20px;
  border: 1px solid rgba(0, 168, 255, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 168, 255, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bestec-ai-modal-overlay.active .bestec-ai-modal-container {
  transform: scale(1) translateY(0);
}

.ai-modal-header {
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-modal-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ai-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.ai-modal-subtitle {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.ai-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ai-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.ai-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.ai-modal-intro {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(0, 168, 255, 0.08);
  border-left: 3px solid #00a8ff;
  border-radius: 4px 8px 8px 4px;
  font-size: 13px;
  color: #e2e8f0;
}

.ai-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .ai-modal-grid {
    grid-template-columns: 1fr;
  }
}

.ai-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ai-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}

.ai-card-header {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-card p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.ai-modal-meta {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-modal-meta a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.ai-modal-meta a:hover {
  text-decoration: underline;
}

.ai-modal-footer {
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-modal-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ai-modal-launch-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.ai-modal-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-modal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.ai-modal-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  margin-left: auto;
  transition: all 0.2s ease;
}

.ai-modal-wa-btn:hover {
  background: #25d366;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Sticky header - keeps header in flow, no gap needed */
#header {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 997;
}

#header.fixed-top {
  position: sticky !important;
  top: 0 !important;
}

.scrolled-offset,
#main.scrolled-offset,
main.scrolled-offset {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==========================================================================
   BESTEC MOBILE & TABLET RESPONSIVE OVERRIDES (320px - 768px)
   ========================================================================== */

@media (max-width: 768px) {

  html,
  body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .container,
  .container-fluid,
  .max-w-7xl,
  .max-w-\[1280px\] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  #header .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .logo img {
    max-height: 40px !important;
    width: auto !important;
  }

  .mobile-nav-toggle {
    font-size: 24px !important;
    cursor: pointer;
  }

  img,
  iframe,
  video {
    max-width: 100% !important;
    height: auto !important;
  }

  section[style*="height:320px"],
  section[style*="height: 320px"] {
    height: auto !important;
    min-height: 240px !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  #footer .footer-top .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #footer .col-lg-3,
  #footer .col-md-6,
  #footer .col-lg-2,
  #footer .col-lg-4 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }

  .footer-bottom .container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px !important;
  }

  h1,
  .h1 {
    font-size: clamp(22px, 6vw, 28px) !important;
  }

  h2,
  .h2 {
    font-size: clamp(18px, 5.5vw, 24px) !important;
  }

  h3,
  .h3 {
    font-size: clamp(16px, 5vw, 20px) !important;
  }

  .btn,
  button,
  a.inline-flex {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   BESTEC UNIVERSAL DARK MODE ENGINE (MATCHING HOME PAGE DARK THEME)
   ========================================================================== */

/* Base Page Backgrounds & Typography */
body.dark-mode,
html.dark body,
html[data-theme="dark"] body {
  background-color: #070e1a !important;
  color: #cbd5e1 !important;
}

body.dark-mode main,
html.dark main,
html[data-theme="dark"] main {
  background-color: #070e1a !important;
}

body.dark-mode .bg-slate-50,
body.dark-mode .bg-gray-50,
body.dark-mode .bg-gray-100,
html.dark .bg-slate-50,
html.dark .bg-gray-50,
html.dark .bg-gray-100 {
  background-color: #070e1a !important;
}

/* Header & Topbar Dark Mode */
body.dark-mode #topbar,
html.dark #topbar {
  background-color: #061527 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #topbar .contact-info a,
html.dark #topbar .contact-info a {
  color: #e2e8f0 !important;
}

body.dark-mode #topbar .contact-info a:hover,
html.dark #topbar .contact-info a:hover {
  color: #38bdf8 !important;
}

body.dark-mode #header,
html.dark #header {
  background: #09152b !important;
  border-bottom: 1px solid rgba(0, 168, 255, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode #header.header-scrolled,
body.dark-mode #header.fixed-top,
html.dark #header.header-scrolled,
html.dark #header.fixed-top {
  background: #060e1d !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode #header .logo a,
html.dark #header .logo a {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  box-shadow: none !important;
  border: none !important;
}

body.dark-mode #header .logo img,
html.dark #header .logo img {
  filter: none !important;
  opacity: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.dark-mode .navbar a,
body.dark-mode .navbar a:focus,
html.dark .navbar a,
html.dark .navbar a:focus {
  color: #e2e8f0 !important;
}

body.dark-mode .navbar a:hover,
body.dark-mode .navbar .active,
body.dark-mode .navbar li:hover>a,
html.dark .navbar a:hover,
html.dark .navbar .active,
html.dark .navbar li:hover>a {
  color: #38bdf8 !important;
  background: transparent !important;
}

body.dark-mode .navbar .dropdown ul,
html.dark .navbar .dropdown ul {
  background: #0b1733 !important;
  border: 1px solid rgba(0, 168, 255, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .navbar .dropdown ul a,
html.dark .navbar .dropdown ul a {
  color: #cbd5e1 !important;
}

body.dark-mode .navbar .dropdown ul a:hover,
html.dark .navbar .dropdown ul a:hover {
  color: #38bdf8 !important;
  background: rgba(0, 168, 255, 0.12) !important;
}

/* Card Surfaces across About Us & Services Pages */
body.dark-mode .bg-white,
html.dark .bg-white,
html[data-theme="dark"] .bg-white {
  background-color: #0f1b35 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .group.relative.bg-white,
html.dark .group.relative.bg-white {
  background-color: #0f1b35 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .group.relative.bg-white:hover,
html.dark .group.relative.bg-white:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

/* Callout & Narrative Highlight Containers */
body.dark-mode .bg-\[\#EEF3FA\],
body.dark-mode .bg-\[\#F6F8FB\],
body.dark-mode .bg-blue-50,
body.dark-mode .bg-emerald-50,
html.dark .bg-\[\#EEF3FA\],
html.dark .bg-\[\#F6F8FB\],
html.dark .bg-blue-50,
html.dark .bg-emerald-50 {
  background-color: #152442 !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
}

/* Headings & Text Color Overrides in Dark Mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #f8fafc !important;
}

body.dark-mode .text-gray-900,
body.dark-mode .text-gray-800,
body.dark-mode .text-slate-900,
body.dark-mode .text-slate-800,
body.dark-mode .text-\[\#0A2540\],
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-\[\#0A2540\] {
  color: #f8fafc !important;
}

body.dark-mode p,
body.dark-mode span:not(.bg-white):not(.bg-\[\#4ADE80\]):not(.bg-\[\#0A2540\]),
body.dark-mode li,
body.dark-mode td,
html.dark p,
html.dark li,
html.dark td {
  color: #cbd5e1;
}

body.dark-mode .text-gray-700,
body.dark-mode .text-gray-600,
body.dark-mode .text-slate-600,
body.dark-mode .text-slate-700,
body.dark-mode .text-\[\#0A2540\]\/80,
body.dark-mode .text-\[\#0A2540\]\/70,
html.dark .text-gray-700,
html.dark .text-gray-600,
html.dark .text-slate-600,
html.dark .text-slate-700,
html.dark .text-\[\#0A2540\]\/80,
html.dark .text-\[\#0A2540\]\/70 {
  color: #94a3b8 !important;
}

/* Section Kickers & Subtitles */
body.dark-mode .text-\[\#16486C\]\/50,
body.dark-mode .text-\[\#16486C\]\/60,
body.dark-mode .text-blue-600,
body.dark-mode .text-\[\#22b6ef\],
html.dark .text-\[\#16486C\]\/50,
html.dark .text-\[\#16486C\]\/60,
html.dark .text-blue-600,
html.dark .text-\[\#22b6ef\] {
  color: #38bdf8 !important;
}

/* Sidebar Panel Elements in Dark Mode */
body.dark-mode aside .bg-white,
html.dark aside .bg-white {
  background-color: #0f1b35 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode aside .hover\:bg-\[\#F6F8FB\]:hover,
html.dark aside .hover\:bg-\[\#F6F8FB\]:hover {
  background-color: rgba(56, 189, 248, 0.12) !important;
}

body.dark-mode aside span.text-\[\#0A2540\]\/80,
html.dark aside span.text-\[\#0A2540\]\/80 {
  color: #cbd5e1 !important;
}

body.dark-mode aside a:hover span,
html.dark aside a:hover span {
  color: #38bdf8 !important;
}

body.dark-mode aside .bg-\[\#F6F8FB\],
html.dark aside .bg-\[\#F6F8FB\] {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Icon Containers in Cards */
body.dark-mode .bg-\[\#E6F4EC\],
body.dark-mode .bg-\[\#E8EEF6\],
body.dark-mode .bg-blue-100,
html.dark .bg-\[\#E6F4EC\],
html.dark .bg-\[\#E8EEF6\],
html.dark .bg-blue-100 {
  background-color: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

body.dark-mode .bg-\[\#F6F8FB\] i,
html.dark .bg-\[\#F6F8FB\] i {
  color: #38bdf8 !important;
}

/* Certificates Grid (`bestec-certification.html`) */
body.dark-mode .group.bg-white,
html.dark .group.bg-white {
  background-color: #0f1b35 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .group.bg-white .border-t,
html.dark .group.bg-white .border-t {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Tables & Borders */
body.dark-mode table,
body.dark-mode tr,
body.dark-mode td,
body.dark-mode th,
html.dark table,
html.dark tr,
html.dark td,
html.dark th {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode th,
html.dark th {
  background-color: #152442 !important;
  color: #f8fafc !important;
}

/* Footer in Dark Mode */
body.dark-mode #footer,
html.dark #footer {
  background-color: #040914 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}