/* Star Force Facilities - Universal Responsive & Polish Stylesheet */

:root {
  --primary-blue: #003087;
  --accent-blue: #0055a5;
  --light-blue: #e8f0fe;
  --text-dark: #212529;
  --text-muted: #555555;
  --transition-speed: 0.3s;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
}

/* Navbar Enhancements */
.navbar {
  transition: all 0.3s ease;
  z-index: 1030;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.03);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem !important;
  font-weight: 500;
  color: #003087 !important;
  transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
  color: #0055a5 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: #0055a5;
  border-radius: 2px;
}

/* Dropdown Menu */
.dropdown-menu {
  border-radius: 8px;
  border: 1px solid rgba(0, 48, 135, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  color: #003087;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f0f4f9;
  color: #0055a5;
  padding-left: 1.5rem;
}

/* Hero Carousel */
.carousel-item {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
}

.carousel-caption {
  z-index: 2;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 90%;
  max-width: 850px;
  margin: 0 auto;
}

.carousel-caption h1 {
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  font-weight: 800;
}

.carousel-caption p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #ffffff;
    padding: 1.25rem;
    margin-top: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link {
    padding: 0.75rem 0.5rem !important;
    border-bottom: 1px solid #f1f3f5;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: #f8f9fa;
    margin: 0.25rem 0 0.5rem 0;
    padding-left: 0.5rem;
  }

  .carousel-item {
    height: 70vh !important;
    min-height: 400px;
  }

  .carousel-caption h1 {
    font-size: 1.85rem !important;
    line-height: 1.2;
  }

  .carousel-caption p {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }

  .carousel-caption .btn {
    padding: 0.55rem 1.6rem !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 40px;
  }

  .carousel-item {
    height: 60vh !important;
    min-height: 360px;
  }

  .carousel-caption h1 {
    font-size: 1.5rem !important;
  }

  .carousel-caption p {
    font-size: 0.85rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-section,
  .services-section,
  .contact-section,
  .careers-section,
  .industries-section,
  .about-section {
    padding: 2.5rem 0 !important;
  }

  .card-body {
    padding: 1.25rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-links a {
    margin: 0 !important;
  }
}

/* Service & Benefit Cards Polish */
.service-card,
.benefit-card,
.industry-card,
.job-card {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.service-card:hover,
.benefit-card:hover,
.industry-card:hover,
.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 48, 135, 0.12) !important;
}

/* Buttons Polish */
.btn-primary {
  background-color: #0055a5 !important;
  border-color: #0055a5 !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #003e7a !important;
  border-color: #003e7a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 85, 165, 0.3);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 85, 165, 0.2);
}

/* Toast Notification for Form Submissions */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background-color: #0055a5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1040;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background-color: #003087;
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
