:root {
  /* Brand Core Colors */
  --color-primary: #032E54;
  --color-primary-hover: #02203B;
  --color-primary-light: #06447C;
  --color-primary-subtle: #EBF3FA;
  --color-primary-rgb: 3, 46, 84;

  --color-secondary: #128B94;
  --color-secondary-hover: #0E6E75;
  --color-secondary-light: #16A2AC;
  --color-secondary-subtle: #E7F6F7;
  --color-secondary-rgb: 18, 139, 148;

  /* Accent & Highlight (Derived from secondary teal) */
  --color-accent: #0fbfcc;
  --color-accent-hover: #0E6E75;
  --color-accent-light: #16A2AC;
  --color-accent-subtle: #E7F6F7;
  --color-accent-rgb: 18, 139, 148;

  /* Surfaces & Backgrounds */
  --color-light: #F3F8FB;
  --color-light-rgb: 243, 248, 251;
  --color-dark: #021B32;
  --color-dark-rgb: 2, 27, 50;

  /* Borders & Shadows */
  --color-border: #DCE8F0;
  --color-border-subtle: #EBF2F7;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
}

/* Typography & Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  font-weight: 700;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--color-accent);
  width: fit-content;
  max-width: 0;
  animation:
    typing 6s steps(30, end) infinite,
    blinkCursor .6s step-end infinite;
}

@keyframes typing {
  0% {
    max-width: 0;
  }

  40%,
  60% {
    max-width: 100%;
  }

  100% {
    max-width: 0;
  }
}

@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

@media (min-width: 768px) {
  .button-cta {
    min-width: 120px;
    padding: 0 25px;
  }
}

/* Top Header */
.top-header {
  background-color: #fff;
}

.header-logo {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.header-company-name {
  font-size: 0.95rem;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .header-logo {
    max-height: 50px;
  }

  .header-company-name {
    font-size: 0.8rem;
  }
}

.search-custom form input {
  padding: 0px 10px !important;
}

/* Navbar */
.navbar {
  /* border-top: 2px solid var(--color-accent); */
  background-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.navbar-brand {
  font-weight: 800;
  color: var(--color-primary) !important;
  font-size: 1.5rem;
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: #ffffff !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 10px !important;
}

.nav-link:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--color-accent);
}

.dropdown-menu {
  padding: 4px 0 !important;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  margin-top: 0;
}

.dropdown-item {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 13px;
  padding: 7px 16px;
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--color-primary);
  color: #ffffff !important;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: #fff;
}

.btn-accent {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 10px 15px;
  font-size: 0.95rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: none;
  outline: 0;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.input-group-text {
  background-color: var(--color-light);
  border-color: #ced4da;
  color: var(--color-primary);
}

/* Sections */
.bg-light-green {
  background-color: var(--color-light);
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
}

/* Footer */
footer {
  background-color: var(--color-primary);
  background-image: linear-gradient(rgba(var(--color-primary-rgb, 3, 46, 84), 0.88), rgba(var(--color-primary-rgb, 3, 46, 84), 0.92)), url('../assets/bg/footer_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
}

.footer-logo {
  max-height: 55px;
  width: auto;
  object-fit: contain;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

footer a i {
  color: #fff;
  font-size: 16px;
}

footer a:hover {
  color: var(--color-accent);
}

footer h5 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.footer-map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 180px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 5px;
}

/* Utilities */
.text-primary-custom {
  color: var(--color-primary) !important;
}

.bg-primary-custom {
  background-color: var(--color-primary) !important;
}

.page-header-bg {
  background-color: var(--color-primary-subtle) !important;
}

/* Pagination */
.pagination-custom .page-link {
  color: var(--color-primary);
  border: none;
  margin: 0 5px;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 18px;
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--color-primary);
  color: #fff;
}

.pagination-custom .page-link:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.hover-zoom {
  transition: transform 0.3s ease;
}

.hover-zoom:hover {
  transform: scale(1.05);
}

/* Custom Backgrounds */
.polka-bg,
.cross-bg,
.waby-bg {
  position: relative;
  background-color: #fff;
  overflow: hidden;
}

.polka-bg::before,
.cross-bg::before,
.waby-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.polka-bg>*,
.cross-bg>*,
.waby-bg>* {
  position: relative;
  z-index: 1;
}

.polka-bg::before {
  opacity: 0.08;
  background-image: radial-gradient(#032E54 1.15px, transparent 1.15px);
  background-size: 23px 23px;
}

.cross-bg::before {
  opacity: 0.08;
  background-image: radial-gradient(#032E54 1.15px, transparent 1.15px);
  background-size: 15px 15px;
}

.waby-bg::before {
  opacity: 0.05;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #fff 6px), repeating-linear-gradient(#032E5455, #032E54);
}

/* ==========================================================================
   Interactive Scroll Effects & Section Animations
   ========================================================================== */

/* Sticky Header Elevation when Scrolled */
.sticky-top {
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.sticky-top.header-scrolled {
  box-shadow: 0 10px 30px rgba(3, 46, 84, 0.14) !important;
}

/* Section Header Animated Accent Line */
.section-header-custom .header-line {
  position: relative;
  overflow: hidden;
  height: 2px;
  background: linear-gradient(90deg, rgba(18, 139, 148, 0.2) 0%, rgba(3, 46, 84, 0.08) 100%);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.section-header-custom .header-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: headerLineShimmer 3.5s infinite;
}

@keyframes headerLineShimmer {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 150%;
  }
}

/* Scroll Reveal Base */
[data-reveal],
.reveal,
.section-header-custom:not([data-reveal]) {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reveal Variations */
[data-reveal="fade-up"],
.reveal-fade-up,
.section-header-custom:not([data-reveal]) {
  transform: translateY(40px);
}

[data-reveal="fade-down"],
.reveal-fade-down {
  transform: translateY(-40px);
}

[data-reveal="fade-left"],
.reveal-fade-left {
  transform: translateX(45px);
}

[data-reveal="fade-right"],
.reveal-fade-right {
  transform: translateX(-45px);
}

[data-reveal="zoom-in"],
.reveal-zoom-in {
  transform: scale(0.92);
}

/* Active Revealed State */
[data-reveal].is-revealed,
.reveal.is-revealed,
.section-header-custom:not([data-reveal]).is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger Container */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(35px);
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-revealed>* {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for child cards */
.reveal-stagger.is-revealed>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.is-revealed>*:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-stagger.is-revealed>*:nth-child(3) {
  transition-delay: 0.19s;
}

.reveal-stagger.is-revealed>*:nth-child(4) {
  transition-delay: 0.26s;
}

.reveal-stagger.is-revealed>*:nth-child(5) {
  transition-delay: 0.33s;
}

.reveal-stagger.is-revealed>*:nth-child(6) {
  transition-delay: 0.40s;
}

.reveal-stagger.is-revealed>*:nth-child(7) {
  transition-delay: 0.47s;
}

.reveal-stagger.is-revealed>*:nth-child(8) {
  transition-delay: 0.54s;
}

/* Interactive Hover Micro-effects */
.category-modern-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.category-modern-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(3, 46, 84, 0.12);
}

.product-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(3, 46, 84, 0.14) !important;
}

.team-carousel .card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
}

.team-carousel .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(3, 46, 84, 0.16) !important;
}

.gallery-grid-container a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 9px;
}

.gallery-grid-container a .gallery-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gallery-grid-container a:hover .gallery-thumb {
  transform: scale(1.08);
}

/* Floating Back to Top Button with Circular Progress Ring */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
  box-shadow: 0 6px 20px rgba(3, 46, 84, 0.18);
  border: none;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease, background-color 0.25s ease, color 0.25s ease;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(3, 46, 84, 0.26);
}

.back-to-top-btn svg.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top-btn svg.progress-ring circle.bg {
  stroke: rgba(3, 46, 84, 0.08);
}

.back-to-top-btn svg.progress-ring circle.progress {
  stroke: var(--color-accent);
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top-btn .arrow-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.back-to-top-btn:hover .arrow-icon {
  transform: translateY(-2px);
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {

  [data-reveal],
  .reveal,
  .reveal-stagger>* {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .section-header-custom .header-line::after {
    display: none !important;
  }
}