:root {
  --green-light: #8bce09;
  --green-dark: #029b40;
  --blue: #043e84;
  --blue-light: #0a5cb5;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --text-color: #222222;
  --text-light: #666666;
  --gradient-primary: linear-gradient(135deg, var(--green-light), var(--green-dark));
  --gradient-secondary: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.nav-link {
  font-size: 18px;
  font-weight: 600;
  padding: 0px;
}

.nav-link:hover {
  color: #8bce09;
}

.nav-link.active {
  color: #029b40 !important;
}

.nav-item {
  padding: 36px 0px;
}

@media (max-width: 991px) {
  .nav-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0px;
  }
}

.bg-black {
  background-color: #000000;
}

.opacity-light {
  opacity: .4;
}

.navbar-brand img {
  height: 80px !important;
}

/* Hero floating image styles */
.hero-floating-img {
  position: absolute;
  z-index: 2;
  right: 0px;
  bottom: -430px;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.35));
  animation: floatY 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes floatY {
  0% {
    transform: translateY(0) rotate(-0.5deg);
  }

  50% {
    transform: translateY(-14px) rotate(0.5deg);
  }

  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
}

/* Highlight style for TOPCon in technology title */
.technology-section .technology-text h2 .text-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.text-highlight .tm{
  position: absolute;
  font-size: 14px;
  /* color: transparent; */
  color: var(--green-light);
}

.tm{
  position: absolute;
  font-size: 10px;
}

/* Ensure hero layout spacing for image on larger screens */
@media (min-width: 768px) {
  .vh-100 .row>.col-md-6:last-child {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Reusable text highlight gradient */
.text-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Parallax Contact Section */
.parallax-contact-section {
  position: relative;
  padding: 100px 0;
  color: #fff;
  background-image: url('../assets/images/h-14.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

.parallax-contact-section .container {
  position: relative;
  z-index: 1;
}

.parallax-contact-section h2 {
  font-weight: 700;
}

.parallax-contact-section .section-subtitle {
  color: #cde5ff;
  font-weight: 600;
  margin-bottom: 10px;
}

.parallax-contact-section .lead {
  color: #f5f7fa;
}

.parallax-contact-section .benefit-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.parallax-contact-section .benefit-list li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .parallax-contact-section {
    padding: 70px 0;
    background-attachment: scroll;
    /* better mobile performance */
  }
}

/* Hover animations for key images */
.technology-image img,
.card-img-top,
.about-company-image img {
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.technology-image:hover img {
  transform: translateY(-6px) scale(1.04);
  filter: brightness(1.05) contrast(1.02) saturate(1.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.product-card:hover .card-img-top,
.card:hover .card-img-top {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.03) saturate(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.about-company-image:hover img {
  transform: translateY(-6px) scale(1.04);
  filter: brightness(1.05) contrast(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {

  .technology-image img,
  .card-img-top,
  .about-company-image img {
    transition: none;
  }
}

/* Ensure hover effect applies to the specific About image wherever used */
img[src*="../assets/images/h-9.webp"] {
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

img[src*="../assets/images/h-9.webp"]:hover {
  transform: translateY(-6px) scale(1.04);
  filter: brightness(1.05) contrast(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Show dropdown on hover for large screens */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 36px;
    /* Aligns perfectly under the nav item */
  }

  @media (max-width: 991px) {
    .dropdown-menu {
      width: auto;
      max-width: 100% !important;
    }
  }

  .navbar .dropdown:hover .dropdown-menu.show,
  .dropdown-menu.show {
    margin-top: 0px;
    padding: 0px !important;
  }
}

.dropdown-menu{
    background-color: var(--dark-gray);
}

@media (min-width: 992px) {
  .dropdown-menu {
    width: 220px;
  }
}


.navbar .dropdown:hover .dropdown-menu {
  padding: 0px !important;
}

.dropdown-item {
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-bottom: 1px solid var(--green-light);
}

.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:active {
  background: transparent;
  color: var(--green-light) !important;
}

/* Blog pagination styles */
.blog-pagination {
  margin-top: 24px;
}

.pagination .page-item {
  margin: 0 4px;
}

.pagination .page-link {
  color: var(--blue);
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  transition: var(--transition);
  background-color: #fff;
}

.pagination .page-link:hover {
  color: var(--green-dark);
  border-color: var(--green-light);
  background-color: var(--light-gray);
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  color: #fff;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(2, 155, 64, 0.25);
}

.pagination .page-item.disabled .page-link {
  color: var(--text-light);
  background-color: var(--light-gray);
  border-color: var(--medium-gray);
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(2, 155, 64, 0.35);
}

.pagination-lg .page-link {
  padding: 10px 18px;
  border-radius: 10px;
}

@media (max-width: 576px) {
  .pagination-lg .page-link {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.footer-bottom .tm{
  position: absolute;
  font-size: 10px;

}

/* Mobile Offcanvas Navigation */
@media (max-width: 991.98px) {
  #mobileOffcanvas .nav-link {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
  #mobileOffcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  #mobileOffcanvas .offcanvas-body {
    padding-top: 0.75rem;
  }
  #mobileOffcanvas .list-unstyled .nav-link {
    padding: 0.4rem 0;
    color: #333;
  }
}

/* Mobile Bottom Navbar */
@media (max-width: 991.98px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  .mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    display: flex; justify-content: space-around; align-items: center;
    height: 64px;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top-left-radius: 16px; border-top-right-radius: 16px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
    gap: 10px;
  }
  .mobile-bottom-nav .nav-icon {
    color: #4b5f75;
    font-size: 1.35rem;
  }
  .mobile-bottom-nav .nav-icon .bi { vertical-align: middle; }

  .mobile-bottom-nav .nav-center {
    position: relative; top: -16px;
    /* width: 48px; */
     height: 48px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
  .mobile-bottom-nav .btn{
    box-shadow: none;
  }

    .mobile-bottom-nav .btn:hover{
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .mobile-bottom-nav .nav-center .bi { font-size: 1.25rem; }

    #mobileOffcanvas .dropdown-menu.show{
        position: relative !important;
    inset: 0px auto auto 0px !important;
    margin: 0px !important;
    transform: translate3d(0px, 0px, 0px) !important;
  }
}