/* ========== Global Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ========== Navbar ========== */
.navbar {
  background: #003366;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 500px;
  line-height: 1.4;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #00ffec;
}

/* ========== Hero Section ========== */
.hero {
  background: url('images/hero.jpg') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  color: white;
  text-align: center;
  max-width: 700px;
  z-index: 2;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #003366;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0057ad;
}

/* ========== About Preview ========== */
.about-preview {
  padding: 4rem 0;
  text-align: center;
}

.about-preview h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003366;
}

.about-preview p {
  max-width: 800px;
  margin: auto;
  margin-bottom: 2rem;
}

.values {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.values div {
  flex: 1;
  min-width: 250px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.values strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #003366;
}

/* ========== Services Preview ========== */
.services-preview {
  padding: 4rem 0;
  background: #eef3f9;
  text-align: center;
}

.services-preview h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003366;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.service-card h4 {
  margin-bottom: 0.5rem;
  color: #003366;
}

.service-card a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #003366;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}

/* ========== Footer ========== */
footer {
  background: #003366;
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

footer h4 {
  margin-bottom: 0.5rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer .copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .values {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }
}
/* Fix spacing in Contact Section */
.services-preview h3 {
  margin-bottom: 10px; /* space after "Contact Us" */
}

.services-preview p {
  margin-bottom: 25px; /* space after the intro text */
}

.services-grid {
  gap: 25px; /* ensure cards don’t touch */
}
/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* background color while loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* stays above everything */
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader img {
  width: 120px; /* adjust logo size */
  height: auto;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.hero-logo {
  width: 250px;   /* make it bigger or smaller as you like */
  margin-bottom: 1.5rem;
}
/* Smooth fade-in for the hero logo (no JS needed) */
.hero-logo {
  width: 250px;              /* adjust as needed */
  height: auto;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: heroLogoIn 900ms ease-out 200ms forwards;
  /* optional: improves animation performance */
  will-change: opacity, transform;
}

@keyframes heroLogoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

