/* assets/css/header.css */
@import url('variables.css');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}
* {
  box-sizing: border-box;
}

.header-container {
  width: var(--screen-max-width);
  max-width: calc(100% - var(--desktop-screen-padding-large));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0px;
}

header.site-header {
  position: relative !important;

  width: 100%;
  background: var(--text-color-white);
  border-bottom: 1px solid #eee;
  z-index: 50;
}

#header {
  position: sticky; /* or fixed */
  top: 0;
  width: 100%;
  z-index: 100;
}
/* Remove relative !important and make it sticky */
/* header.site-header {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  background: var(--text-color-white);
  border-bottom: 1px solid #eee;
  z-index: 100;
  box-shadow: rgba(99, 99, 99, 0.2) 0 1.5px 8px 0;
} */
.menu-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.desktop-menu-list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
}

.desktop-menu-list li {
  position: static !important; /* reset everything */
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: var(--font-size-normal);
  font-weight: var(--font-weight-normal);
  color: var(--text-color-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative; /* ⬅️ Needed for submenu */
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: var(--font-weight-noraml) var(--font-size-normal) / 1.2
    var(--font-family-base);
  color: var(--text-color-dark);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

/* ✅ Logo */
.logo {
  width: 250px;
  height: 50px;
  display: flex;
  align-items: center;
}
.logo img {
  height: 50px;
  width: auto;
}

.site-header {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 1.5px 8px 0px;
  position: relative;
}

#top-header {
  position: relative !important;
  background-color: var(--text-color-white);
  z-index: 100;
}

.top-header .contact-header {
  display: flex;
  gap: 40px;
  padding: 7px 0px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
}

.social-header {
  display: flex;
  gap: 5px;
}
.header-social-icon a {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--text-color-dark);
  color: var(--text-color-white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mail-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-header .mail-container div {
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-social-icon img,
.contact-header .mail-container div img {
  width: 60%;
  color: var(--text-color-white);
}

.main-nav {
  display: none;
}

/* ===================== MEGA MENU (Desktop only) ===================== */
.about-mega-menu {
  position: absolute !important;
  top: 58px; /* right below menu item */
  left: 0;
  min-width: 100%;
  background-color: var(--text-color-white);
  display: flex;
  gap: 3px;
  overflow: hidden;
  min-height: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  z-index: 999;
}

.desktop-menu-list li:hover > .about-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}

/* Mega containers */
.about-mega-container {
  flex: 1;
  cursor: pointer;
  color: var(--text-color-white);
  text-decoration: none;
  padding: 15px;
  display: flex;
  justify-content: end;
  align-items: end;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.arrow-div {
  margin-top: 10px;
  display: flex;
  justify-content: end;
}

.mega-tab-content {
  margin-bottom: -60px;
  transition: margin 0.3s;
}

.about-mega-container:hover .mega-tab-content {
  margin-bottom: 0px;
}

.mega-tab-content .font-small {
  margin-bottom: 15px;
}

/* Background images */
.our-company-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/our-company-tab.png);
  background-position: 50% 70%;
}
.testimonials-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/testimonial-tab.png);
  background-position: 50% 10%;
}
.careers-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/careers-tab.png);
  background-position: 50% 60%;
}
.faq-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/faq-tab.png);
  background-position: 70% 80%;
}

.web-dev-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/web-dev-tab.png);
  background-position: 50% 70%;
}
.app-dev-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/app-dev-tab.png);
  background-position: 50% 10%;
}
.ui-ux-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/ui-ux-tab.png);
  background-position: 50% 60%;
}
.game-dev-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/game-dev-tab.png);
  background-position: 70% 80%;
}
.digital-marketing-tab {
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.6),
      rgba(181, 181, 181, 0.1)
    ),
    url(/assets/img/others/digital-tab.png);
  background-position: 60% 20%;
}

/* Fonts */
.font-medium {
  font-size: var(--font-size-medium);
  margin: 5px 0px;
}
.font-normal {
  margin: 2px 0px;
  font-size: var(--font-size-normal);
}
.font-small {
  margin: 2px 0px;
  font-size: var(--font-size-small);
}

/* ===================== RESPONSIVE ===================== */
@media screen and (max-width: 950px) {
  .menu-container {
    display: none;
  }
  .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-theme-color);
  }
  .main-nav img {
    width: 80%;
  }
  .logo img {
    height: 45px;
  }
  .header-container {
    height: 60px;
    max-width: 100%;
    padding: 0 10px;
  }
  .header-container {
    padding-right: 0px;
  }

  /* ❌ Hide mega menu on tablet/mobile */
  .about-mega-menu {
    display: none !important;
  }
}

/* 🔹 Overlay (dark background behind drawer) */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease-in-out;
  z-index: 999; /* below drawer */
}

/* 🔹 Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%; /* hidden initially */
  min-width: 70%;
  height: 100%;

  background: linear-gradient(to right, rgba(61, 155, 255, 0.879)),
    url('https://images.unsplash.com/photo-1685034759882-34583cece8e1?q=80&w=802&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')
      center/cover no-repeat;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); */
  transition: 0.3s ease-in-out;
  z-index: 1000; /* above overlay */
  /* padding: 20px; */
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

.mobile-nav > div:last-child {
  margin-top: auto;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0px;
}

.mob-nav-menu-list a li {
  width: 100%;
  padding: 5px 10px;
  padding-left: 35px;
  text-transform: uppercase;
  color: var(--text-color-white);
}
a {
  text-decoration: none;
}

.mobile-nav ul li {
  width: 100%;
  padding: 5px 10px;
  padding-left: 35px;
  /* border-bottom: 1px solid var(--text-color-lightest); */
}
.mobile-nav .nav-main-logo {
  margin-left: -4px;
  height: 60px;
}
.mobile-nav ul li:first-child {
  /* border-top: 1px solid var(--text-color-lightest); */ 
}

.mobile-nav .nav-main-logo img {
  height: 100%;
}
.mob-nav-info-container {
  /* background-color: white !important; */
  position: relative;
  left: -0px;
  right: -10px;
  width: calc(100% + 20px);
  margin-bottom: 30px;
}

.mobile-nav ul li a {
  text-decoration: none;
  font-size: var(--font-size-normal);
  color: white;
  text-transform: capitalize;
}

.mob-nav-title {
  display: flex;
  padding-left: 8px 15px !important;
  align-items: center;
  gap: 6px;

  /* background-color: var(--primary-theme-color); */
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.382);
  /* box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, */
  /* rgba(0, 0, 0, 0.1) 0px 0px 1px 0px; */
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.mob-nav-title > div {
  width: 20px;
  height: 20px;
}
.mob-nav-title > div img {
  width: 100%;
}
.mob-nav-title a {
  font-size: var(--font-size-normal) !important;
  color: rgb(33, 33, 33) !important;
  padding-top: 6px;
  padding-bottom: 6px;
  text-transform: uppercase !important;
}

.mob-home-nav-title {
  background-color: rgba(151, 151, 151, 0);
  box-shadow: none;
}

.mob-home-nav-title:hover {
  background-color: rgba(255, 255, 255, 0.382);

  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.mob-nav-title a {
  color: rgb(255, 255, 255) !important;
}
.mob-nav-title {
  margin-top: 8px;
}
.icon-right {
  margin-left: auto;
}
.mob-navigation-footer div p {
  font-size: var(--font-size-small);
  margin: 0;
}
.mob-navigation-footer {
  margin-top: 20px;
  /* border-top: 1px solid var(--text-color-lightest); */
}

.mob-navigation-footer > div {
  display: flex;
  gap: 10px;
  padding: 5px 10px;
  align-items: center;
  margin: 0;
}

.navigation-footer-social {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  gap: 0;
}
.nav-footer-container {
  display: flex;
  width: calc(100% + 20px);
  gap: 0;
  justify-content: space-around;
  display: none;
}
.nav-footer-icon-container {
  /* flex: 1; */
  width: 60px;
  height: 40px;
  /* border-radius: 50%; */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  border-right: 1.5px solid var(--text-color-lightest);
  margin-bottom: -10px;
  position: relative;
  left: -0px;
  right: -10px;
  width: calc(100% + 20px);
}
.nav-footer-icon-container img {
  height: 40%;
}

.close-btn {
  border: none;
  background: none;
  cursor: pointer;
  align-self: flex-end;
}

/* 🔹 Active State */
.mobile-nav.active {
  left: 0;
}

.mobile-nav-overlay.active {
  opacity: 0.1;
  visibility: visible;
}

.mob-nav-info-container {
  display: flex;
  flex-direction: column;
  margin-top: -10px;
  position: relative;
  left: -10px;
  right: -10px;
  width: calc(100% + 20px);
}
.mob-nav-info {
  display: none !important;
}

.mob-nav-info-container > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mob-nav-info-icon-div {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: var(--primary-theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid white;
}
.mob-nav-info-icon-div img {
  width: 60%;
}

.icon-nav-left {
  width: 15px !important;
  height: 15px !important;
  margin-left: -27px;
  margin-top: -5px;
}

.icon-nav-left img {
  width: 80% !important;
}
.icon-right {
  width: 15px !important;
  height: 15px !important;
  margin-top: -3px;
  margin-right: 5px;
}

.icon-right img {
  width: 90% !important;
  transform: rotate(180deg);
}

.desktop-menu-list li a {
  text-decoration: none;

  transition: 0.3s;
}

.li-link a {
  color: var(--text-color-dark);
}
.desktop-menu-list li a:hover {
  /* transform: translateY(-1px); */
  transition: 0.3s;
}
/* 🔹 Hide desktop menu in mobile */
@media (max-width: 950px) {
  .desktop-menu-list {
    display: none;
  }
  .main-nav {
    display: flex;
    cursor: pointer;
  }
}

@media screen and (max-width: 600px) {
  .top-header {
    display: none;
  }
}
