/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding-top: 60px;  /* same height as navbar */
}

/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 12%;
  z-index: 100;
  background-color: #042551;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .logo img {
  height: 60px;
  width: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 50px;
}

.nav-links a {
  text-decoration: none;
  color: #f7f7f8;
  font-weight: 600;
  font-size: 16px;
}

.nav-links a:hover {
  color: #0077cc;
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
}

.slide-text {
  position: absolute;
  bottom: 60px;
  left: 50px;
  background: rgba(170, 187, 212, 0.45);
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  max-width: 60%;
}

.slide-text h2 {
  font-size: 36px;
}
.slide-text h3 {
  font-size: 24px;
}
.slide-text p {
  font-size: 18px;
}

/* Fade Animation */
.fade {
  animation: fadeEffect 1.2s ease-in-out;
}
@keyframes fadeEffect {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* --- About Section --- */
.about-section {
  padding: 60px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.about-content {
  display: flex;
  gap: 40px;
  text-align: justify;
  flex-wrap: wrap;
  align-items: center;
}

.about-text, .about-image {
  flex: 1;
}

.about-image img {
  width: 55%;        /* reduced from 100% */
  max-width: 250px;  /* reduced from 300px */
  border-radius: 10px;
  display: block;
  margin: auto;      /* centers the image */
}


/* -----------------------------
     SERVICES – TWO IMAGES ROW
------------------------------ */
.services-section {
  padding: 60px 0;
  text-align: center;
}

.services-section h2 {
  font-size: 36px;
  color: #002b5b;
}

.services-grid {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.two-images {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.dual-image-box {
  margin-top: 5%;
  width: 50%;
  text-align: center;
}

.dual-image-box img {
  width: 80%;
  height: 290px;
  margin-top: 5%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dual-image-box h3 {
  font-size: 26px;
  color: #002b5b;
  margin-top: 15px;
}

.dual-image-box p {
  font-size: 18px;
  color: #444;
  padding: 3%;
  text-align: justify;
  margin-top: 10px;
  line-height: 1.7;
}

/* Responsive – Services */
@media screen and (max-width: 768px) {
  .two-images {
    flex-direction: column;
  }
  .dual-image-box {
    width: 100%;
  }
  .dual-image-box img {
    height: 260px;
  }
}

/* ----------------------------------
   CONTACT HERO CARD
---------------------------------- */
.contact-hero {
  width: 100%;
  padding: 50px 0;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #002b5b, #004d8a);
}

.contact-card {
  background: #ffffff;
  padding: 30px 40px;
  max-width: 700px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.contact-card h2 {
  font-size: 30px;
  color: #002b5b;
  margin-bottom: 20px;
}

.contact-card p {
  font-size: 18px;
  margin: 10px 0;
  color: #333;
  line-height: 1.6;
}



/* ----------------------------------
   CONTACT SECTION
---------------------------------- */
.contact-section {
  padding: 60px 0;
  background: #f8f9fc;
}

.contact-title {
  text-align: center;
  font-size: 32px;
  color: #002b5b;
  margin-bottom: 40px;
}

.contact-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-size: 16px;
  color: #002b5b;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
}

.contact-form button {
  padding: 12px 20px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #0055aa;
}

/* Contact Image */
.contact-image {
  flex: 1;
  text-align: center;
}

.contact-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Footer --- */
.footer {
  background: #002233;
  color: #d7e3ef;
  padding: 50px 0 0;
}

.footer-container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 15px;
}

.footer-col h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #d7e3ef;
}

.footer-col ul li a:hover {
  color: #00aaff;
}

.footer-social a img {
  width: 22px;
  margin-right: 10px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.footer-social a img:hover {
  filter: brightness(0.5) invert(1);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding: 15px 0;
  background: #00141f;
  font-size: 15px;
  border-top: 1px solid #003344;
}

@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }
  .footer-col {
    min-width: 100%;
  }
}

/* STOP HORIZONTAL SCROLLING */
html, body {
  overflow-x: hidden;
}

/* Prevent any element from going outside the screen */
* {
  max-width: 100%;
}

/* Fix service rows overflow */
.service-row {
  width: 100%;
  overflow: hidden;
}

/* Fix large images */
.service-image img,
.about-image img,
.contact-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent hero slider overflow */
.hero-slider {
  overflow: hidden;
}
