/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5vh 3vw;
    background-color: transparent;
    color: #fff;
    position: fixed; /* Fixed position at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Make sure the header is on top */
    height:14vh; /* Set a fixed height for the header */
    box-sizing: border-box; /* Ensure padding doesn’t overflow */
  }
  @font-face {
    font-family: 'Montserrat';
    src: url('../Fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-display: swap;

}
.logo img{
  width: 15vw;
}
.services-mobile {
  display: none;
}
  body {
    font-family: 'Montserrat';
    margin: 0;
    padding: 0;
  }
 .hamburger {
  display: none;
 }
  #a-service {
    display: flex;
    margin-top: -1vh;
  }
  #a-service svg {
    width: 2vw;
    margin-left: 1vw;
    margin-top: 1vh;
  }
  #a-service svg:hover {
    fill: transparent;
    mask-image: linear-gradient(90deg,  black 25%, #663cbd 50%, #936bcc 75%, #ffdee3 100%);;
    }
  .logo {
    font-size: 1.5em;
    font-weight: bold;
  }
  
  .nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin-right:3vw ;
    
  }
  
  .nav li {
    margin-left: 2vw;
    position: relative;
  }
  
  .nav a {
    text-decoration: none;
    color: #fff;
    font-size: clamp(14px, 1.6vw, 18px);
    padding: 1vh;
  }
  
  .nav a:hover {
      background-image: linear-gradient(90deg,  black 25%, #663cbd 50%, #936bcc 75%, #ffdee3 100%);
      background-clip: text;
      -webkit-text-fill-color: transparent;
      background-size: 200% 100%;
      animation: textColorTransition 2s ease forwards; /* Apply animation */
    }
  
  /* Hover effect to display dropdown for "Services" */
  .services:hover .dropdown, .dropdown:hover {
    display: grid; /* Display dropdown as a grid */
  }
  
  .services .dropdown {
    position: absolute;
    top: 10vh; /* Adjust according to header height */
    left: 10%;
    transform: translateX(-19%); /* Center the dropdown */
    background-color: #111;
    padding: 4vh;
    border-radius: 1vw;
    box-shadow: 0px 0.6vw 0.8vh rgba(0, 0, 0, 0.1);
    max-height: 76vh;
    overflow-y: auto;
    display: none; /* Initially hidden */
    width: 82vw; 
    height: auto;
    grid-template-columns: repeat(3, 1fr); /* 3 columns layout */
    grid-gap: 3vw; /* Space between columns */
    padding-top: 6vh;
  }
    /* Add the downward arrow using the ::before pseudo-element */
    .services:hover::before {
      content: '';
      position: absolute;
      top: 1.6em;  /* Position it just above the dropdown */
      left: 2em;  /* Center it relative to the button */
      border-left: 30px solid transparent;
      border-right: 30px solid transparent;
      border-bottom: 40px solid #111;  /* Same color as dropdown background */

    }
  .dropdown h3 {
    margin-top: 0;
    color: #fff;
    font-size: clamp(15px, 1.8vw, 20px);
    font-weight: 600;
    text-align: left;
    margin-left: 1em;
  }
  
  .dropdown ul{
    list-style-type: none;
    display: list-item;
    margin-left: 2em;
  }
  
  /* Keyframes for text color transition */
@keyframes textColorTransition {
  0% {
    background-position: left; /* Start from black */
  }
  100% {
    background-position: right; /* End with gradient */
  }
}

.dropdown li {
  margin: 1vh 0;
  color: inherit; /* Allow the color to inherit for text */
  text-align: left;
  font-size: clamp(13px, 1.2vw, 16px);
}

.dropdown li a {
  display: inline-block;
  text-decoration: none; /* Ensure no underline */
  font-size: inherit; /* Inherit the font size from li */
  color: inherit; /* Inherit the color */
  padding: 0; /* Reset padding */
}

.dropdown h3 a {
  font-size: inherit; /* Inherit the font size from h3 */
  color: inherit; /* Inherit the color */
  margin-top: 0;
    color: #fff;
    font-size: 1.05em;
    font-weight: 500;
    text-align: left;
    margin-left: -5px;
}


.dropdown li a {
  display: inline-block;
}
.dropdown li {
  display: flex;
}
.dropdown li img {
  width: 1.4vw;
  margin-right: 0.2vw;
}
.dropdown li:hover a {
  background-image: linear-gradient(90deg,  black 25%, #663cbd 50%, #936bcc 75%, #ffdee3 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: textColorTransition 0.8s ease forwards; /* Apply animation */
}
#contact {
  border-radius: 1.8vw;
  border: solid 3px;
  border-color: #fff;
}
#contact a{
 padding: 3vw 1.3vw;
}
#contact:hover {
  background: #fff;
  background-size: 100% 100%;
  animation: textColorTransition 0.8s ease forwards; /* Apply animation */
}
.dropdown h3:hover a {
  background-image: linear-gradient(90deg,  black 25%, #663cbd 50%, #936bcc 75%, #ffdee3 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: textColorTransition 0.8s ease forwards; /* Apply animation */
}
  @media (max-width: 996px) {
    
    .nav {
      display: none; /* Hide navigation on small screens */
      width: 100%;
      position: absolute;
      top: 40px; /* Adjust based on your header height */
      right: 0;
      z-index: 10;
    }
    .hamburger {
      display: block;
      position: absolute;
      right: 0;
      margin-right: 3%;
    }
    .header .nav.active {
      display: block; /* Show navigation when active */
      align-items: flex-start;
    }
    #contact {
      border: none;
    }
    .header .nav ul {
      align-items:right;
      flex-direction: column;
      width: 87%;
      padding: 10px;
      margin-top: 3%;
      background-color: rgba(255, 255, 255, 0.9);
      margin-left: 5%;
      margin-right: 10%;
    }
  
    .header .nav ul li {
      margin: 5px 0;
      text-align: left;
      width: 30%;
      color: #111;
    }
    .header .nav ul li a{
      color: #111;
    }
  }

  /* Make the dropdown sections responsive */
  @media (max-width: 768px) {
    .dropdown {
      width: 90vw; /* Make the dropdown slightly larger on mobile */
      grid-template-columns: 1fr; /* Stack everything in one column on smaller screens */
    }

    .logo img{
      width: 5em;
    }
    .nav {
      display: none; /* Hide navigation on small screens */
      width: 100%;
      position: absolute;
      top: 60px; /* Adjust based on your header height */
      right: 0;
      z-index: 10;
    }
    .hamburger {
      display: block;
      position: absolute;
      right: 0;
    }
    .header .nav.active {
      display: block; /* Show navigation when active */
      align-items: flex-start;
    }
  
    .header .nav ul {
      align-items:right;
      flex-direction: column;
      width: 87%;
      padding: 10px;
      margin-top: 1px;
      background-color: rgba(255, 255, 255, 0.9);
      margin-left: 5%;
      margin-right: 10%;
    }
  
    .header .nav ul li {
      margin: 5px 0;
      text-align: left;
      width: 30%;
      color: #111;
    }
    .header .nav ul li a{
      color: #111;
    }
  }
  /* Services Dropdown hidden on mobile */
@media (max-width: 768px) {
  .services {
    display: none; /* Hide dropdown on mobile */
  }
  .services-mobile {
    display: block;
  }
}

