:root {
   --primary-color: #ffffff;
   --secondary-color: #e0e0e0;
   --text-color: #ffffff;
   --bg-color: #003673;
}

body {
   font-family: 'roboto', sans-serif;
   background-image: url('./bg.jpg');
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   background-repeat: no-repeat;
   color: var(--text-color);
   background-color: var(--bg-color);
   display: flex;
   flex-direction: column;
   min-height: 100vh;
}

.content-wrapper {
   background-color: rgba(255, 255, 255, 0.9);
   position: relative;
   z-index: 1;
   flex-grow: 1;
   padding-top: 50px;
}

.navbar {
   background-color: #002244;
   box-shadow: 0 1px 2px rgba(0,0,0,0.1);
   transition: background-color 0.3s ease;
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 1000;
   padding-top: 0.3rem;
   padding-bottom: 0.3rem;
}

.navbar-brand {
   font-size: 1.2rem;
   padding-top: 0;
   padding-bottom: 0;
}

.navbar-brand img {
   height: 30px;
   width: auto;
}

.navbar ul li a {
   color: #fff;
   text-decoration: none;
   font-size: 0.9rem;
   position: relative;
   padding-top: 0.4rem;
   padding-bottom: 0.4rem;
}

.navbar ul li a::after {
   content: '';
   width: 0%;
   height: 2px;
   background: whitesmoke;
   position: absolute;
   left: 0;
   bottom: 0;
   transition: 0.5s;
}

.navbar ul li a:hover::after {
   width: 100%;
}

.navbar-sticky {
   background-color: rgba(0, 54, 115, 0.9);
}

.dropdown-menu {
   background-color: #003673;
   border: none;
   border-radius: 0;
   box-shadow: 0 2px 5px rgba(0,0,0,0.2);
   margin-top: 0.2rem;
   position: absolute;
   display: none;
}

.dropdown-item {
   color: #fff;
   padding: 0.4rem 1rem;
   font-size: 0.9rem;
   transition: background-color 0.3s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
   background-color: #004d99;
   color: #fff;
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
   display: block;
}

.hero-section {
   color: #003673;
   padding: 8rem 0;
   position: relative;
}

.services-section {
   background-color: #f8f9fa;
   color: #333;
}

.services-section .card {
   background-color: #ffffff;
   color: #333;
}

.services-section .card-title {
   color: #003673;
}

.services-section .btn-outline-primary {
   color: #003673;
   border-color: #003673;
}

.services-section .btn-outline-primary:hover {
   color: #ffffff;
   background-color: #003673;
}
.hero-content {
   background-color: rgba(0, 0, 0, 0.3);
   padding: 20px;
   border-radius: 5px;
}

.hero-button {
   display: inline-block;
   margin-top: 20px;
   padding: 10px 20px;
   background-color: red;
   color: white;
   text-decoration: none;
   border-radius: 6px;
}

.hero-button:hover {
   background-color: #003673;
}

.footer {
   background-color: #002244; /* Darker blue for the footer */
   color: white;
   padding: 3rem 0;
   
}

.footer a {
   color: #ffffff;
   text-decoration: none;
}

.footer a:hover {
   text-decoration: underline;
}

.footer .copyright {
   background-color: rgba(0, 0, 0, 0.2);
   padding: 1rem 0;
   margin-top: 3rem;
   position: relative;
   bottom: 0;
   height:80px;
   width: 100%;
}

.carousel-item {
   height: 400px;
}

.carousel-item img {
   object-fit: cover;
   height: 100%;
}

.carousel-caption {
   background-color: rgba(0, 0, 0, 0.5);
   padding: 20px;
   border-radius: 10px;
}

.card {
   border: none;
   transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06) !important;
}

.card-img-top {
   height: 200px;
   object-fit: cover;
}

.btn-outline-primary {
   border-color: #007bff;
   color: #007bff;
}

.btn-outline-primary:hover {
   background-color: #007bff;
   color: white;
}

#loader-wrapper {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: #f3f3f3;
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 9999;
   transition: opacity 0.3s ease-out;
}

.loader {
   position: relative;
   width: 100px;
   height: 100px;
}

.loader::before, .loader::after {
   content: '';
   position: absolute;
   border: 3px solid transparent;
   border-top-color: #003673;
   border-radius: 50%;
   animation: spin linear infinite;
}

.loader::before {
   top: 5px;
   left: 5px;
   right: 5px;
   bottom: 5px;
   animation-duration: 1.5s;
}

.loader::after {
   top: 15px;
   left: 15px;
   right: 15px;
   bottom: 15px;
   animation-duration: 1s;
}

.logo {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 50px;
   height: 40px;
   animation: spinLogo linear infinite 2s;
}

@keyframes spin {
   0% { transform: rotate(0deg); border-top-color: #003673; }
   25% { border-top-color: #00a86b; }
   50% { border-top-color: #7cfc00; }
   75% { border-top-color: #00a86b; }
   100% { transform: rotate(360deg); border-top-color: #003673; }
}

@keyframes spinLogo {
   0% { transform: translate(-50%, -50%) rotate(0deg); }
   100% { transform: translate(-50%, -50%) rotate(360deg); }
}

body.loaded #loader-wrapper {
   opacity: 0;
   visibility: hidden;
}

@media (max-width: 991px) {
   .navbar-toggler {
       padding: 0.25rem 0.5rem;
       font-size: 1rem;
   }

   .navbar-collapse {
       background-color: #003673;
   }

   .dropdown-menu {
       background-color: #003673;
       border: none;
       padding-left: 1rem;
       position: relative;
   }

   .dropdown-item {
       color: rgba(255, 255, 255, 0.8);
       padding: 0.3rem 1rem;
   }

   .dropdown-item:hover, .dropdown-item:focus {
       background-color: transparent;
       color: #fff;
   }
}

.stats-section {
   background-color: #002244;
   padding: 60px 0;
   margin-bottom: 50px;
}

.spacer {
   height: 50px;
   background-color: #f8f9fa;
}

.count-box {
   background-color: rgba(255, 255, 255, 0.1);
   color: #ffffff;
   padding: 30px;
   border-radius: 15px;
   text-align: center;
   box-shadow: 0 10px 30px rgba(0,0,0,0.2);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   height: 100%;
}

.count-box i,
.count-box h3,
.count-box p,
.count-box .additional-info {
   color: #ffffff;
}

.count-box:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.count-box i {
   font-size: 3rem;
   margin-bottom: 20px;
   color: var(--primary-color);
}

.count-box h3 {
   font-size: 2.5rem;
   font-weight: bold;
   margin-bottom: 10px;
   color: var(--primary-color);
}

.count-box p {
   font-size: 1.2rem;
   color: var(--text-color);
   margin-bottom: 15px;
   background-color: rgba(255, 255, 255, 0.2);
   padding: 8px 15px;
   border-radius: 20px;
   transition: background-color 0.3s ease;
}

.count-box:hover p {
   background-color: rgba(255, 255, 255, 0.3);
}

.count-box .additional-info {
   font-size: 0.9rem;
   color: var(--secondary-color);
   margin-top: 10px;
}

@keyframes countUp {
   from {
       opacity: 0;
       transform: translateY(20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.animate-count {
   animation: countUp 1s ease-out;
}
