/* style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;700&display=swap");

:root {
  --bg-gradient: linear-gradient(90deg, #010b14 0%, #031b2b 50%, #01080e 100%);
  --blue-glow: #0076c9;
  --text-gray: #b0b8c1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #01080e;
  font-family: "Inter", sans-serif;
}

.button-primary {
  padding: 6px 13px !important;
  border-top: 3px solid #82B8DC !important;
  border-radius: 10px !important;
}

.navbar {
  background-color: transparent;
  height: 85px;
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
  justify-content: space-between !important;
}

.navbar.scrolled {
  background-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dark Background (Hero section is dark, links become white) */
.navbar.header-light .nav-links li a {
  color: #ffffff!important;
}

/* Fix sub-menu color to black in light header mode */
.navbar.header-light .dropdown-menu-custom li a {
  color: #000000 !important;
}
.navbar.header-light .dropdown-menu-custom li a:hover {
  color: #0076c9 !important;
}

.navbar.header-light .nav-links li a::after {
  background-color: #fff;
}

/* Light Background (Hero section is white, links become black) */
.navbar.header-dark .nav-links li a {
  color: #000000;
}

.navbar.header-dark .nav-links li .contact-btn {
  color: #fff !important;
}

.navbar.header-dark .nav-links li a::after {
  background-color: #0076c9;
  /* Hover line becomes blue */
}

.navbar.header-dark .nav-links li a:hover {
  color: #0076c9;
  /* Text becomes blue on hover */
}

/* Mobile Hamburger color adjustment */
.navbar.header-dark .hamburger span {
  background: #000000;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;

}

.logo .main-logo {
  width: 250px;
  height: 70px;
}

/* Logo Hover Animation */
.logo a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo .main-logo {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
}

.logo-text-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateX(-30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  color: #fff;
}

.logo a:hover .main-logo {
  opacity: 0;
  transform: scale(0.9);
}

.logo a:hover .logo-text-hover {
  opacity: 1;
  transform: translate(-50%, -50%) translateX(0);
}

.logo-text-hover .text-white,
.logo-text-hover .text-black {
  display: none;
}

/* Theme Adaptation for Logo Text */
/* Dark Background (header-light) -> White Text */
.navbar.header-light .logo-text-hover .text-white {
  display: block;
}

/* Light Background (header-dark) -> Black Text */
.navbar.header-dark .logo-text-hover .text-black {
  display: block;
}

.logo-box {
  width: 40px;
  height: 40px;
  background: #fff;
  /* Placeholder for cube logo */
  border-radius: 4px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}

.logo-text span {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 3.5px;
  color: #fff;
}


/* Desktop Menu */
.nav-links {
  list-style: none;
}

.nav-links li {
  position: relative;
  /* Anchor point for the border */
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  /* Aapke background ke hisaab se color */
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links li a.active {
  color: #0069C8 !important;
}

/* Border ka Initial State (Hidden) */
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  /* Border ki thickness */
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  /* White Border */
  transform: scaleX(0);
  /* Shuruat mein width 0 rahegi */
  transform-origin: bottom left;
  /* Animation left se shuru hogi */
  transition: transform 0.3s ease-out;
  /* Smooth transitions */
}

/* Hover State (Show Border) */
.nav-links li a:hover::after {
  transform: scaleX(1);
  /* Hover karne par full width */
}

/* Contact Us Button Reset (Taki button ke niche line na aaye) */
.nav-links li a.btn-primary::after {
  display: none;
}

.arrow-right {
  width: 20px;
  height: 20px;
}

.contact-btn:hover .arrow {
  transform: translateX(5px);
}

.arrow {
  display: inline-block;
  margin-left: 8px;
  /* Animation ko yahan directly add kar diya */
  animation: arrowMove 1.2s ease-in-out infinite;
}

@keyframes arrowMove {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-5px);
    /* Thoda left move karega */
  }

  100% {
    transform: translateX(0);
  }
}


/* Styles for Mobile Drawer (Initially Hidden on Desktop) */

.nav-links {
  list-style: none;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
  }
}

.drawer-header {
  display: none;
  /* Hidden by default, shown in mobile */

  justify-content: space-between;

  align-items: center;

  padding: 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-header span {
  font-size: 18px;

  font-weight: 700;

  color: #fff;
}

.close-btn {
  color: #fff;

  font-size: 30px;

  cursor: pointer;
}

.overlay {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  z-index: 998;

  opacity: 0;

  visibility: hidden;

  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
  opacity: 1;

  visibility: visible;
}

/* Hamburger Icon */

.hamburger {
  display: none;

  flex-direction: column;

  gap: 6px;

  cursor: pointer;
}

.hamburger span {
  width: 30px;

  height: 3px;

  background: white;

  border-radius: 2px;
}

.drawer-header {
  display: none;
  /* Only visible in mobile */
}


/* --- Dropdown Styles --- */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  list-style: none;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
  color: #000!important;
  background-color: #fff;
}

.dropdown-menu-custom li a {
  padding: 10px 20px !important;
  font-size: 14px !important;
  display: block !important;
}

.dropdown-menu-custom li a::after {
  display: none !important;
  /* Remove underline from dropdown items */
}

/* Hover effect for Desktop */
@media (min-width: 992px) {
  .nav-item-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu-custom li a {
    color: #000 !important;
  }

}

/* Theme Adaptation for Dropdown */
.navbar.header-dark .dropdown-menu-custom {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar.header-dark .dropdown-menu-custom li a {
  color: #333 !important;
  color: #fff !important;
}

.navbar.header-dark .dropdown-menu-custom li a:hover {
  background: #f8f9fa;
  background: rgba(255, 255, 255, 0.1);
  color: #0076c9 !important;
}

/* --- Mobile Specific (Responsive) --- */
@media (max-width: 991px) {
  .dropdown-menu-custom {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    /* Toggle via JS */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 20px;
    transform: none;
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .dropdown-menu-custom li a {
    color: #fff !important;
  }

  .dropdown-menu-custom.active {
    display: block;
  }

  .dropdown-toggle-link::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
  }

  .navbar.header-dark .dropdown-menu-custom li a {
    color: #fff !important;
  }
}
