:root {
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-blue: #60a5fa;
  --light-blue: #dbeafe;
  --primary-orange: #f97316;
  --secondary-orange: #fb923c;
  --light-orange: #ffedd5;
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-orange: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --gradient-blue-orange: linear-gradient(135deg, #1e40af 0%, #f97316 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #f9fafb;
  padding: 0;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}

/* ========== Logo ========== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
}

/* ========== Menu ========== */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
}

.nav-menu a:hover {
  color: var(--secondary-blue);
}

/* ========== Dropdown / Mega Menu ========== */
.nav-menu .has-dropdown {
  position: relative;
}

.nav-menu .has-dropdown:hover .mega-menu {
  display: flex;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -200px;
  width: 800px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  z-index: 1000;
  gap: 40px;
}

.mega-menu-column {
  flex: 1;
}

.mega-menu-title {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-blue);
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list li {
  margin-bottom: 10px;
}

.mega-menu-list a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.mega-menu-list a:hover {
  color: var(--primary-orange);
}

/* ========== CTA Button ========== */
.cta-button {
  background: var(--gradient-orange);
  color: var(--white);
  padding: 10px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* ================= RESPONSIVE DESIGN ================= */
/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-800);
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

/* Tablet and Mobile view */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    gap: 15px;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
    /* margin-top: 6rem; */
    position: absolute;
  }

  .nav-menu li {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 8px 0;
  }

  .nav-menu .has-dropdown:hover .mega-menu {
    display: none;
  }

  .mega-menu {
    position: static;
    flex-direction: column;
    width: 100%;
    padding: 15px;
    box-shadow: none;
    border-radius: 0;
    border-left: 3px solid var(--light-blue);
    margin-top: 10px;
    display: none;
    gap: 20px;
  }

  .has-dropdown.active .mega-menu {
    display: flex;
  }

  .cta-button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }

  .cta-button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .mega-menu {
    width: 100%;
    padding: 10px;
  }
}

/* Simple fade-in animation for mobile nav */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown arrow animation */
.has-dropdown > a i {
  transition: transform 0.3s ease;
}

.has-dropdown.active > a i {
  transform: rotate(180deg);
}

/* Demo content */
.demo-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.demo-content h1 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.demo-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.demo-content .card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}
/* Hide submenu by default on mobile */
@media (max-width: 1024px) {
  .nav-menu .submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
  }

  /* Show submenu when parent has .active class */
  .nav-menu .has-dropdown.active > .submenu {
    display: block;
  }

  /* Optional: Smooth transition */
  .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
/* Mobile Specific Styles */
@media (max-width: 1024px) {
  /* 1. Reset the Mega Menu container for mobile */
  .has-dropdown .mega-menu {
    display: none; /* Hidden by default */
    position: static; /* IMPORTANT: This prevents it from floating off-screen */
    width: 100%;
    visibility: visible;
    opacity: 1;
    height: auto;
    background-color: #f9f9f9; /* Light grey so you can see the difference */
    padding: 15px;
    box-shadow: none;
    border-top: 1px solid #eee;
  }

  /* 2. Show the menu when the .active class is added via JS */
  .has-dropdown.active > .mega-menu {
    display: block !important;
  }

  /* 3. Ensure columns stack vertically on mobile */
  .mega-menu-column {
    width: 100% !important;
    padding: 0;
    /* margin-bottom: 20px; */
  }

  /* 4. Style the menu titles (Data Science, etc.) */
  .mega-menu-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
  }
}
/* Lead form */
.lead {
  margin-top: 8px;
}
.form-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.form-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: -1px -1px 1px #0000003b;
}
.form-sub {
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: center;
}
.form-grid {
  display: grid;
  gap: 0.75rem;
}
.input {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.input label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--gray-800) !important;
}
.input input,
.input select,
.input textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bs-body-bg);
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}
.input input:focus,
.input select:focus,
.input textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.helper {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .input.span-2 {
    grid-column: span 2;
  }
}
/* Popup overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* Popup box */
.popup-box {
  background: rgb(255, 255, 255);
  padding: 20px;
  max-width: 550px;
  width: 92%;
  border-radius: 16px;
  position: relative;
  animation: popupIn 0.35s ease;
}

/* Close button */
.popup-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

@keyframes popupIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 767px) {
  .popular .section-head {
    justify-content: center;
  }
  .popular .section-head .section-title {
    text-align: center;
  }
}
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: #1e40af;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ffb000;
}
