/* =========================================
   MODERN TECH STARTUP OVERRIDES
   ========================================= */

:root {
  --primary-accent: #3f78e0;
  --secondary-accent: #5eb9f0;
  --gradient-text: linear-gradient(135deg, #3f78e0 0%, #a07cc5 100%);
  --gradient-bg: linear-gradient(135deg, rgba(63, 120, 224, 0.1) 0%, rgba(160, 124, 197, 0.1) 100%);
}

body {
  -webkit-font-smoothing: antialiased;
  background-color: #fcfcfc;
  overflow-x: hidden;
}

/* Modern Typography */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.fw-black {
  font-weight: 900 !important;
  letter-spacing: -1.5px;
}

/* =========================================
   NAVBAR FIXES (FORCED VISIBILITY)
   ========================================= */
.navbar {
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 1050 !important; 
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.navbar-nav .nav-link {
  color: #343f52 !important;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-accent) !important;
}

.navbar-nav .nav-link.text-primary {
  color: var(--primary-accent) !important;
}

/* Modern Buttons */
.btn-tech {
  background: var(--primary-accent) !important;
  color: white !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px 0 rgba(63, 120, 224, 0.39) !important;
  border: none !important;
}
.btn-tech:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(63, 120, 224, 0.23) !important;
  background: var(--secondary-accent) !important;
}

/* Floating Tech Cards */
.tech-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  height: 100%;
}
.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  border-color: rgba(63, 120, 224, 0.2);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gradient-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 28px; 
  color: var(--primary-accent);
}

/* Hero Section Polish */
.hero-wrapper {
  padding-top: 180px;
  padding-bottom: 120px;
  background: radial-gradient(circle at top right, rgba(63,120,224,0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(160,124,197,0.05), transparent 40%);
}

.bento-img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  width: 100%;
}

/* Scroll to Top Fix */
.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(63, 120, 224, 0.2);
  z-index: 10000;
  background-color: #fff;
  transition: all 200ms linear;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
}
.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.progress-wrap i {
  font-size: 24px;
  color: var(--primary-accent);
  z-index: 2;
}
.progress-wrap:hover {
  background-color: var(--primary-accent);
}
.progress-wrap:hover i {
  color: #fff;
}


/* =========================================
   MOBILE RESPONSIVENESS & HAMBURGER MENU
   ========================================= */

@media (max-width: 991.98px) {
  
  /* Absolute force visibility for Mobile Hamburger */
  .navbar-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .navbar-toggler i {
    font-size: 32px !important;
    color: var(--primary-accent) !important; 
    line-height: 1 !important;
  }

  .custom-offcanvas {
    background-color: #ffffff !important;
  }
  
  .custom-offcanvas .nav-link {
    font-size: 1.2rem !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  /* General Mobile Spacing */
  .hero-wrapper {
    padding-top: 140px !important;
    padding-bottom: 60px !important;
    text-align: center;
  }
  
  .display-1 {
    font-size: 2.8rem !important;
    line-height: 1.1;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .lead.fs-20 {
    font-size: 1.1rem !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }

  .process-text {
    padding-bottom: 2rem;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .bento-img {
    max-height: 200px;
    object-fit: cover;
  }
  
  .mobile-stat-card {
    padding: 1.5rem !important;
  }
  
  .mobile-stat-card .h4 {
    font-size: 1.5rem;
  }
}

/* =========================================
   LOGO FIXES
   ========================================= */

/* Navbar Logo Fix */
.navbar-logo {
  width: 160px;
  height: auto;
  max-width: 100%;
  object-fit: contain; /* Prevents any squishing or stretching */
  
  /* NOTE: If your logo is WHITE and disappearing into the white navbar, 
     uncomment the line below to magically turn it dark blue/black: */
  /* filter: brightness(0.2) sepia(1) hue-rotate(180deg) saturate(3); */
}

/* Footer Logo Fix */
.footer-logo {
  width: 220px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  
  /* NOTE: If your logo is DARK and disappearing into the dark footer, 
     uncomment the line below to magically turn it white: */
  /* filter: brightness(0) invert(1); */
}

/* Make logos slightly smaller on mobile devices for better spacing */
@media (max-width: 991px) {
  .navbar-logo, .footer-logo {
    width: 180px;
  }
}

/* =========================================
   MOBILE NAVBAR: LOGO & BUTTON ONLY
   ========================================= */

/* Adjust the button specifically for smaller screens */
@media (max-width: 991px) {
  .candidate-btn {
    padding: 0.4rem 1rem !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  
  /* Make sure the logo scales down nicely next to the button */
  .navbar-logo {
    width: 150px !important; 
    height: auto !important;
  }
}