/* Base Styles and Variables */
:root {
  --primary-blue: #0099FF;
  --secondary-green: #32B232;
  --dark-blue: #0066CC;
  --light-blue: #E6F4FF;
  --primary-color: #0096FF;
  /* CloudTech blue */
  --secondary-color: #28a745;
  /* Green */
  --dark-color: #17355A;
  /* Darker blue */
  --light-color: #E6F4FF;
  /* Light blue background */
  --gray-color: #333;
  --white: #FFFFFF;
  --black: #000000;
  --transition: all 0.3s ease;
}

/* Header */
.ct-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Added color transition */
}

.header-scrolled {
  background-color: var(--white);
  /* Changed to white from black (rgb(21, 20, 28)) */
}

.ct-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.ct-nav-left,
.ct-nav-right {
  display: flex;
  align-items: center;
  height: 80px;
}

.ct-logo-container {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.ct-logo {
  max-height: 210px;
  width: auto;
}

.ct-nav-menu {
  display: flex;
  list-style: none;
  height: 100%;
}

.ct-nav-menu li {
  display: flex;
  align-items: center;
  height: 100%;
}

.ct-nav-left .ct-nav-menu li {
  margin-right: 20px;
}

.ct-nav-right .ct-nav-menu li {
  margin-left: 20px;
}

.ct-nav-menu li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

/* Change menu item color to black when header is scrolled */
.header-scrolled .ct-nav-menu li a {
  color: var(--black);
  text-shadow: none;
}

/* Hover effect for menu items */
.ct-nav-menu li a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  z-index: -1;
}

.ct-nav-menu li a:hover {
  color: var(--white);
}

.ct-nav-menu li a:hover:before {
  transform: scaleY(1);
}

.ct-nav-menu li a.ct-active {
  color: var(--white);
  position: relative;
  border-bottom: 3px solid var(--primary-blue);
}

/* Update active menu item when header is scrolled */
.header-scrolled .ct-nav-menu li a.ct-active {
  color: var(--black);
}

/* Mobile menu button */
.ct-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--white);
}

/* Change menu button color when header is scrolled */
.header-scrolled .ct-menu-btn {
  color: var(--black);
}

/* Mobile Menu */
.ct-mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  transition: var(--transition);
}

/* Change mobile menu background color when header is scrolled */
.header-scrolled .ct-mobile-menu {
  background-color: rgba(255, 255, 255, 0.95);
}

.ct-mobile-menu.ct-active {
  display: block;
}

.ct-mobile-menu .ct-nav-menu {
  flex-direction: column;
  height: auto;
  padding: 20px 0;
}

.ct-mobile-menu .ct-nav-menu li {
  height: auto;
  margin: 0;
  width: 100%;
  text-align: center;
}

.ct-mobile-menu .ct-nav-menu li a {
  padding: 15px 0;
  width: 100%;
  justify-content: center;
}

.ct-mobile-menu .ct-nav-menu li a:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Change mobile menu text color when header is scrolled */
.header-scrolled .ct-mobile-menu .ct-nav-menu li a {
  color: var(--black);
  text-shadow: none;
}

.header-scrolled .ct-mobile-menu .ct-nav-menu li a:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Hero Section */
.ct-hero-container {
  width: 100%;
  position: relative;
  height: 40vh;
  overflow: hidden;
}

.ct-hero-image {
  height: 100%;
  width: 100%;
  background-image: url('assets/header\ bg\ new.jpg');
  background-position: center;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
}

@media(max-width:767px) {
  .ct-hero-image {
    height: 110%;
    width: 100%;
    background-size: contain;

  }


}

.ct-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Contact Buttons */
.ct-contact-buttons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
}

.ct-contact-btn {
  width: 35px;
  height: 35px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
  color: var(--white);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ct-contact-btn:hover {
  background-color: var(--dark-blue);
  transform: scale(1.1);
}

.ct-contact-btn i {
  font-size: 20px;
}

/* Mobile Contact Buttons */
.ct-mobile-contact-buttons {
  display: none;
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 9999;
  gap: 8px;
}

/* Chat Button */
.ct-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary-green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.ct-chat-btn:hover {
  background-color: #278E27;
  transform: scale(1.05);
}

.ct-chat-btn i {
  font-size: 18px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .ct-nav-left .ct-nav-menu li {
    margin-right: 10px;
  }

  .ct-nav-right .ct-nav-menu li {
    margin-left: 10px;
  }

  .ct-nav-menu li a {
    padding: 0 10px;
    font-size: 12px;
  }

  .ct-logo {
    max-height: 180px;
  }

  .ct-hero-container {
    height: 35vh;
  }
}

@media (max-width: 768px) {

  .ct-nav-left,
  .ct-nav-right .ct-nav-menu {
    display: none;
  }

  .ct-menu-btn {
    display: block;
    order: 3;
  }

  .ct-logo-container {
    order: 1;
    justify-content: center;
    /* Center logo */
    flex: 1;
  }

  .ct-nav-right {
    order: 2;
    flex: 0;
    justify-content: flex-end;
  }

  .ct-hero-container {
    height: 30vh;
  }

  .ct-hero-image {
    background-position: center center;
  }

  .ct-hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
  }
}

@media (max-width: 480px) {
  .ct-logo {
    max-height: 150px;
  }

  .ct-nav-container {
    padding: 0 10px;
  }

  .ct-hero-container {
    height: 25vh;
  }

  /* .ct-hero-image {
    background-size: cover;
  } */

  /* Hide vertical contact buttons on mobile */
  .ct-contact-buttons {
    display: none;
  }

  /* Show mobile contact buttons */
  .ct-mobile-contact-buttons {
    display: flex;
    gap: 8px;
  }

  .ct-mobile-contact-buttons .ct-contact-btn {
    width: 40px;
    height: 40px;
  }

  .ct-mobile-contact-buttons .ct-contact-btn i {
    font-size: 16px;
  }

  /* Adjust chat button for mobile */
  .ct-chat-btn {
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .ct-chat-btn i {
    font-size: 16px;
  }
}

/* HEADER PRODUCT DROPDOWN */
/* Dropdown Menu Styles */
.ct-dropdown {
  position: relative;
}

.ct-services-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  /* White background always */
  min-width: 300px;
  /* Increased from 250px */
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
  /* Slightly increased for a softer look */
}

.ct-dropdown:hover .ct-services-menu {
  display: block;
}

.ct-services-menu a {
  color: var(--black) !important;
  /* Always keep text black in dropdown with !important */
  padding: 30px 38px;
  /* Increased the top/bottom padding from 24px to 30px */
  text-decoration: none;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  /* Changed color for better visibility on white */
  font-size: 15px;
  line-height: 2;
  /* Increased from 1.5 to 2 for more height */
  height: auto;
  /* Ensures the block expands to content */
  min-height: 30px;
  text-shadow: none !important;
  /* Remove any text shadow with !important */
}

.ct-services-menu a:hover {
  background-color: var(--primary-blue);
  /* Changed to primary blue for hover state */
  color: var(--white) !important;
  /* Change text color to white on hover with !important */
}

.ct-has-submenu {
  position: relative;
}

.ct-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--white);
  /* Changed to white for submenu */
  min-width: 300px;
  /* Increased from 250px */
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 5px;
}

.ct-submenu a {
  color: var(--black) !important;
  /* Always black text in submenu with !important */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  /* Subtle borders */
  text-shadow: none !important;
  /* Remove any text shadow with !important */
}

.ct-submenu a:hover {
  background-color: var(--primary-blue);
  /* Changed to primary blue for hover in submenu */
  color: var(--white) !important;
  /* Change text color to white on hover with !important */
}

.ct-has-submenu:hover .ct-submenu {
  display: block;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
  .ct-services-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    padding-left: 20px;
    background-color: var(--white);
    /* Ensure white background on mobile */
  }

  .ct-submenu {
    position: static;
    box-shadow: none;
    width: 100%;
    padding-left: 20px;
    background-color: var(--white);
    /* Ensure white background on mobile */
  }

  .ct-mobile-menu .ct-dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ct-mobile-menu .ct-has-submenu>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ct-mobile-menu .ct-dropdown .ct-services-menu {
    display: none;
  }

  .ct-mobile-menu .ct-has-submenu .ct-submenu {
    display: none;
  }

  .ct-mobile-menu .ct-dropdown.active .ct-services-menu {
    display: block;
  }

  .ct-mobile-menu .ct-has-submenu.active .ct-submenu {
    display: block;
  }

  /* Update mobile menu background and text colors */
  .header-scrolled .ct-mobile-menu {
    background-color: var(--white);
  }

  .header-scrolled .ct-mobile-menu .ct-services-menu a,
  .header-scrolled .ct-mobile-menu .ct-submenu a {
    color: var(--black);
  }

  .header-scrolled .ct-mobile-menu .ct-services-menu a:hover,
  .header-scrolled .ct-mobile-menu .ct-submenu a:hover {
    background-color: var(--primary-blue);
    color: var(--white) !important;
  }
}

/* HEADER PRODUCT DROPDOWN END */