/* ===== Header Styles ===== */
header {
  background: url('../assets/images/logo/colurshde.jpg') no-repeat center center;
  background-size: cover;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px; /* Reduced height */
  display: flex;
  align-items: center;
}

/* Optional: Add overlay for better readability */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  z-index: -1;
}

/* ===== Header Container ===== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative; /* Ensure content stays above background */
}

/* ===== Combined Logos on Left ===== */
.logo-combined {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Main Logo - Mr. Promise (Bigger) */
.main-logo {
  height: 80px; /* Adjusted to fit reduced header */
  width: auto;
  object-fit: contain;
}

/* Secondary Logo - Sanjay Chemicals (Smaller) */
.secondary-logo {
  height: 50px; /* Adjusted to fit reduced header */
  width: auto;
  object-fit: contain;
}

/* ===== Navigation (Right Side) ===== */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #333; /* Dark color for contrast */
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 5px;
}

nav a:hover {
  color: #d4af37;
}

nav a.active {
  color: #d4af37;
  font-weight: 700;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #d4af37;
  border-radius: 2px;
}









/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #d4af37;
  background: none;
  border: none;
}

/* ===== Google Translate Element ===== */
#google_translate_element {
  position: fixed;
  top: 90px; /* Adjusted for reduced header height */
  right: 20px;
  z-index: 1000;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hide Google Translate branding */
.goog-logo-link, .goog-te-gadget span {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ===== Responsive Header ===== */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }

  .mobile-menu {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    text-align: center;
    padding: 10px 0;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 10px 20px;
    gap: 10px;
  }

  .main-logo {
    height: 60px;
  }
  
  .secondary-logo {
    height: 45px;
  }

  #google_translate_element {
    right: 10px;
    top: 85px;
  }
}

@media (max-width: 480px) {
  .logo-combined {
    gap: 8px;
  }
  
  .main-logo {
    height: 60px;
  }
  
  .secondary-logo {
    height: 40px;
  }
  
  .header-container {
    padding: 0 10px;
  }
}