/* ================= GLOBAL RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= THEME VARIABLES ================= */
:root {
  /* White & Gray Colors */
  --bg-white: rgb(255, 255, 255);
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  
  /* Teal Color Scheme */
  --teal-dark: #0d9488;
  --teal-main: #14b8a6;
  --teal-light: #2dd4bf;
  --teal-soft: #5eead4;
  --teal-muted: #99f6e4;
  
  /* Accents */
  --accent-teal: #14b8a6;
  --border-color: #e2e8f0;
  
  /* Card colors */
  --card-bg: #ffffff;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ================= BODY ================= */
body {
  user-select: none;
  min-height: 100vh;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================= HEADER ================= */
.main-header {
  top: 0;
  width: 100%;
  z-index: 1050;
  background: rgba(4, 120, 120);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Also style the Bootstrap navbar to match the site's header */
.navbar-custom {
  background: rgba(4,120,120);
  padding: 8px 0;
}
.navbar-brand img {
  height: 46px;
}
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
}
.navbar-nav .nav-link:hover {
  color: #b2ecec !important;
}

/* Ensure dropdowns can overflow the header and appear above other content */
.main-header,
.header-inner,
.main-nav,
.nav-list {
  overflow: visible;
}

/* Make dropdown menus appear above other elements */
.dropdown-menu {
  z-index: 2000;
}

.dropdown.active .dropdown-menu,
.dropdown-menu.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.main-header.scrolled {
  background: rgba(4, 120, 120, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 18px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* ================= NAVIGATION ================= */
.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--bg-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 0;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #c0eef0;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: 4px;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #008080;
  color: #ffffff;
  transform: translateX(4px);
  border-radius: 10px;
}

/* Show dropdown when active class is added */
.dropdown-menu.active {
  display: block;
}

.nav-item .dropdown i {
  font-size: 2px;
  transition: transform 0.3s ease;
}

/* Dropdown menu container */
.navbar .dropdown-menu {
  background-color: #c0eef0;
  border-radius: 10px;
  border: none;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  animation: dropdownFade 0.25s ease-in-out;
}

/* Dropdown items */
.navbar .dropdown-menu .dropdown-item {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #2c3e50;
  transition: all 0.25s ease;
  border-radius: 6px;
}

/* Hover effect */
.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #008080;
  color: #ffffff;
  transform: translateX(4px);
}

/* Active / clicked item */
.navbar .dropdown-menu .dropdown-item:active {
  background-color: #008080;
  color: #ffffff;
}

/* Dropdown animation */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Metallic teal focus-style box */
.new-focus {
  position: relative;
  padding: 6px 14px !important;
  border-radius: 8px;

  border: 2px solid #20c9b5;
  color: #ffffff !important;

  box-shadow:
    0 0 0 1px rgba(32, 201, 181, 0.9),
    0 0 10px rgba(32, 201, 181, 0.6),
    inset 0 0 4px rgba(255, 255, 255, 0.15);

  animation: focusBlink 1.6s infinite ease-in-out;
}

/* Blink / pulse like active select */
@keyframes focusBlink {
  0% {
    box-shadow:
      0 0 0 1px rgba(32, 201, 181, 0.9),
      0 0 8px rgba(32, 201, 181, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(32, 201, 181, 1),
      0 0 16px rgba(32, 201, 181, 0.9);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(32, 201, 181, 0.9),
      0 0 8px rgba(32, 201, 181, 0.5);
  }
}

/* Optional: stop blinking on hover */
.new-focus:hover {
  animation: none;
  box-shadow:
    0 0 0 2px rgba(32, 201, 181, 1),
    0 0 18px rgba(32, 201, 181, 1);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
}

.mobile-toggle:hover {
  color: var(--teal-main);
}

/* ================= HERO ================= */
.hero {
  padding: 130px 50px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-light);
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--teal-main);
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= SERVICES + PRODUCTS ================= */
.sp-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 80px;
  background: var(--bg-white);
  max-width: 1400px;
  margin: 0 auto;
}

.sp-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--teal-light);
}

.sp-card h2 {
  font-size: 28px;
  margin-bottom: 32px;
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

.sp-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--teal-main);
  border-radius: 2px;
}

/* ================= CLICKABLE ================= */
.clickable {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

/* ================= SERVICES ================= */
.service-item {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  background: whitesmoke;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--teal-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.service-item h4 {
  font-size: 10px;
  margin-bottom: 10px;
  color: var(--teal-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-item p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-gray);
}

/* ================= PRODUCTS ================= */
.product-box {
  margin-top: 10px;
}

.product-title {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--teal-main);
  transition: all 0.3s ease;
  padding: 8px 0;
}

.product-title:hover {
  color: var(--teal-dark);
}

/* ================= PRODUCT LIST ================= */
.product-list {
  display: grid;
  gap: 16px;
}

.product {
  background: whitesmoke;
  padding: 18px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--teal-main);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.product h4 {
  font-size: 10px;
  margin-bottom: 10px;
  color: var(--teal-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--teal-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

/* ================= PRODUCT TEXT ================= */
.product-desc {
  margin-bottom: 24px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 520px;
}

/* ================= FOOTER ================= */
.footer-pro {
  padding: 60px 80px 0;
  background: #008080;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand h2 {
  font-size: 35px;
  margin-bottom: 16px;
  color: var(--bg-white);
  font-weight: 700;
}

.footer-brand p {
  color: var(--bg-light);
  line-height: 1.7;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links h4 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--bg-white);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--bg-white);
  margin-top: 8px;
  border-radius: 2px;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--bg-white);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--bg-white);
}

.footer-bar {
  margin-top: 60px;
  padding: 20px 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.company-info {
  margin-top: 20px;
}

.company-info img {
  height: 40px;
  margin-bottom: 15px;
}

.company-info p {
  font-size: 15px;
  color: var(--bg-white);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ================= RESPONSIVE NAVIGATION ================= */
@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
    margin-left: auto;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 1px solid var(--border-color);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  
  .nav-link {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease;
    border: none;
    margin-left: 20px;
    background: var(--bg-light);
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: 8px 0;
  }
  
  .dropdown-link:hover {
    background: rgba(20, 184, 166, 0.08);
  }
  
  .header-inner,
  .hero,
  .sp-section,
  .footer-pro {
    padding-left: 30px;
    padding-right: 30px;
  }

  .sp-section {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .hero {
    padding: 140px 30px 60px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }
  
  .hero {
    padding: 120px 20px 40px;
  }
  
  .sp-card {
    padding: 24px;
  }
  
  .header-inner {
    padding: 15px 20px;
  }
  
  .sp-section,
  .footer-pro {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Ensure Bootstrap's .show state displays dropdowns across the site */
.navbar .dropdown-menu.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* For desktop: position dropdown absolutely */
@media (min-width: 992px) {
  .navbar .dropdown-menu {
    position: absolute !important;
  }
}

/* For mobile: allow the collapse to show dropdown items properly */
@media (max-width: 991px) {
  .navbar .dropdown-menu {
    position: static !important;
    display: none; /* Hidden by default, shown when .show class is added by Bootstrap */
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 20px;
    background-color: rgba(192, 238, 240, 0.95);
    border-radius: 8px;
    margin-top: 8px;
  }
  
  /* Show dropdown when Bootstrap adds the .show class */
  .navbar .dropdown-menu.show {
    display: block !important;
  }
}