/* Header Navigation Styling - Tech Website Look */
.header {
  position: relative;
  z-index: 1000;
}
.header .navbar {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  min-height: 70px;
}
.header .navbar.affix {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}
.header .navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  margin-right: 3rem;
  transition: all 0.3s ease;
  z-index: 10;
}
.header .navbar-brand img {
  max-height: 45px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(1.1);
}
.header .navbar-brand:hover img {
  transform: scale(1.05);
  filter: brightness(1.2);
}
.header .navbar-nav.menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 2rem;
}
.header .navbar-nav.menu li {
  margin: 0;
  position: relative;
}
.header .navbar-nav.menu li a {
  padding: 0.75rem 1.25rem;
  font-size: 15px;
  font-weight: 500;
  color: #e5e7eb !important;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  border-radius: 6px;
}
.header .navbar-nav.menu li a::before {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: transform 0.3s ease;
}
.header .navbar-nav.menu li a:hover {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.1);
}
.header .navbar-nav.menu li a:hover::before {
  transform: translateX(-50%) scaleX(1);
}
.header .navbar-toggler {
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  z-index: 10;
}
.header .navbar-toggler span {
  color: #e5e7eb;
  font-size: 1.5rem;
}

/* Fix for content below fixed header - Increased spacing */
body {
  padding-top: 0 !important;
}
.main {
  padding-top: 0;
}
/* Hero section and first sections need extra padding to clear fixed header */
.hero-pro,
.page-header-section,
section.ptb-100:first-of-type,
section.overflow-hidden:first-of-type,
.main > section:first-child,
.main section.ptb-100:first-child {
  padding-top: 180px !important;
  margin-top: 0 !important;
}

/* Ensure all page headers have proper spacing */
.page-header-section {
  padding-top: 180px !important;
}

/* Additional selector for pages that start directly with sections */
body > section:first-of-type.ptb-100,
body > section:first-of-type.page-header-section {
  padding-top: 180px !important;
}

/* Career page specific hero section fix */
.careers-hero {
  padding-top: 180px !important;
  margin-top: 0 !important;
}

/* Universal fix: Any first section after .main or directly after header */
.main > section:first-of-type,
.main section:first-of-type.ptb-100,
.main section:first-of-type.page-header-section,
.header ~ .main > section:first-child,
.header + .main > section:first-child {
  padding-top: 180px !important;
}

/* Modern Tech Website Enhancements */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Section spacing improvements */
section {
  position: relative;
}

/* Modern card styling */
.card {
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Button improvements */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .header .navbar {
    padding: 0.75rem 0;
    min-height: 60px;
  }
  .header .navbar-brand {
    margin-right: 1rem;
  }
  .header .navbar-brand img {
    max-height: 40px;
  }
  .header .navbar-nav.menu {
    margin-left: 0;
    margin-top: 1rem;
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }
  .header .navbar-nav.menu li {
    width: 100%;
  }
  .header .navbar-nav.menu li a {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border-radius: 8px;
  }
  .header .navbar-nav.menu li a::before {
    display: none;
  }
  .header .navbar-nav.menu li a:hover {
    background: rgba(59, 130, 246, 0.15);
    padding-left: 1.5rem;
  }
  /* Career page hero responsive */
  .careers-hero {
    padding-top: 150px !important;
  }
  .main > section:first-of-type,
  .main section:first-of-type.ptb-100,
  .main section:first-of-type.page-header-section,
  .header ~ .main > section:first-child,
  .header + .main > section:first-child {
    padding-top: 150px !important;
  }
}

@media (min-width: 992px) {
  .header .navbar-nav.menu {
    margin-left: 2.5rem;
  }
}

@media (max-width: 576px) {
  /* Career page hero responsive */
  .careers-hero {
    padding-top: 140px !important;
  }
  .main > section:first-of-type,
  .main section:first-of-type.ptb-100,
  .main section:first-of-type.page-header-section,
  .header ~ .main > section:first-child,
  .header + .main > section:first-child {
    padding-top: 140px !important;
  }
}

