/* --- styles.css --- */
:root {
  --primary: #1e3a5f;
  --accent: #a3c1da;
  --light: #f8f9fa;
  --dark: #212529;
  --font-base: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* Initial large navbar */
.navbar {
  padding: 1.5rem 1rem;
  transition: padding 0.3s ease, background-color 0.3s ease;
  width: 100%;
  background-color: #1e3a5f;
}

/* Shrunk navbar on scroll */
.navbar.scrolled {
  padding: 0.5rem 1rem;
  background-color: #1e3a5f;
}

/* Center the nav links */
.navbar-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-link {
  padding: 0.5rem 1rem;
}

/* Logo */
.logo {
  min-height: 50px;
  max-height: 50px;
  /* height: 100%; */
  object-fit: cover;
  filter: drop-shadow(0 0 .5px rgba(255, 255, 255, 0.7));
}

/* Search toggle styling */
.search-input {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  border: 1px solid #ccc;
}

.search-input.open {
  width: 200px;
  opacity: 1;
}

.search-icon {
  font-size: 1.25rem;
  cursor: pointer;
}

.hero-banner {
  background: linear-gradient(to bottom, #003366 0%, #0055aa 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 1rem;
  margin-top: 120px;
  margin-left: 50px;
  margin-right: 50px;
}

.bg-dark {
  background-color: #152841 !important;
}

.bg-dark-blue {
  background-color: #152841 !important;
}

@media (max-width: 768px) {
  .navbar .form-control {
    width: 100px;
  }
}

/* Hero Section */
.hero-section {
  height: 80vh;
  background: url('Images/hero-bg.jpg') center/cover no-repeat;
  position: relative;
  margin-top: 95px;
  padding: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 58, 95, 1) 10%, #0055aa);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
}

.btn-accent:hover {
  background-color: #fff;
  color: var(--primary);
  text-decoration: none;
}

/* Cards */
.card {
  border: none;
}

.card-title {
  color: var(--primary);
}

/* CTA Banner */
.cta-banner {
  background-size: cover;
  background-position: center;
}

.cta-banner h4 {
  color: #fff;
  font-size: 1.5rem;
}

/* Footer Links */
.text-accent {
  color: var(--accent) !important;
}

.text-accent:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 576px) {
  .hero-section {
    height: 60vh;
  }
}

.carousel-item {
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  height: 792px !important;
}

.carousel-item img {
  width: 100%;
  height: 70%;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  margin-top: 120px;
}

.carousel-item h1 {
  text-shadow: 0 0 20px rgba(0, 0, 0, 1);
}

.carousel-item p {
  background: #0f76bd;
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.8) ;
  text-shadow: 0 0 20px rgba(0, 0, 0, 1);
  max-width: fit-content;
  margin: 20px auto !important;
  /* margin-bottom: 50px !important; */
  padding: 5px 10px;
  border-radius: 3px;
}

.carousel-item a {
  max-width: fit-content;
  margin: 20px auto !important;
  background: #e9202b;
  color: #fff;
  box-shadow: rgba(0, 0, 0, 0.5) 0 2px 4px, rgba(0, 0, 0, 0.5) 0 2px 10px;
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 50px;
  ;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 100%;
  height: 250px;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}

.team-card-body {
  padding: 20px 10px;
}

.team-card-body h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1e3a5f;
}

.team-role {
  font-size: 0.9rem;
  color: #e9202b;
  margin-bottom: 1rem;
}

.team-card-body p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
}

.card-product {
  cursor: pointer;
  position: relative;
  background-color: #fff;
  background: linear-gradient(to bottom, #fff 80%, #003366 100%);
  border-radius: 10px;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
  border: solid 1px #ccc;
}

.btn-outline-accent {
  background: transparent;
  color: #fff;
  margin: 10px 0;
}

.btn-outline-accent:hover {
  background: #fff;
  color: var(--accent);
  filter: brightness(0.95);
}