/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a3d62;
  color: #fff;
  padding: 15px 40px;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

header .tagline {
  font-size: 0.9rem;
  font-weight: normal;
  margin-left: 10px;
  color: #dcdde1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #fbc531;
}

/* Hero Section */
.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
}

.carousel {
  display: flex;
  animation: slide 10s infinite;
}

.carousel .slide {
  min-width: 100%;
  position: relative;
}

.carousel img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.carousel .caption {
  position: absolute;
  bottom: 30px;       /* slightly higher for visibility */
  left: 50px;         /* more spacing from edge */
  background: rgba(0,0,0,0.7); /* darker overlay for contrast */
  color: #fff;
  padding: 20px 30px; /* larger padding for emphasis */
  border-radius: 6px;
  font-size: 1.5rem;  /* increased font size */
  font-weight: 600;   /* bold text */
  max-width: 60%;     /* keep text contained */
  line-height: 1.4;   /* improve readability */
}

/* Services Section */
#services {
  padding: 60px 40px;
  background: #f9f9f9;
  text-align: center;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #0a3d62;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* Card Style for Services */
.service {
  background: #fff; /* default background */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, background 0.3s;
  text-align: left;
}

.service h3 {
  font-size: 1.2rem;
  color: #0a3d62;
  margin-bottom: 10px;
}

.service p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Hover Effect */
.service:hover {
  transform: translateY(-5px);
  background: #f1f2f6;
}

/* Optional: Different background colors for each card */
.service:nth-child(1) {
  background: #eaf4ff; /* light blue */
}
.service:nth-child(2) {
  background: #fff8e6; /* light yellow */
}
.service:nth-child(3) {
  background: #e9f9f1; /* light green */
}
.service:nth-child(4) {
  background: #fceef3; /* light pink */
}


/* About Us */
/* About Us Section */
#about {
  padding: 60px 40px;
  background: #fff;
}

#about h2 {
  text-align: center;
  font-size: 2rem;
  color: #0a3d62;
  margin-bottom: 30px;
}

.about-container p {
  margin-bottom: 25px; /* adds space after each paragraph */
  line-height: 1.6;
  color: #333;
}

/* Team Member Styling */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px; /* space after team block before next <p> */
}

.member {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.member h3 {
  color: #0a3d62;
  margin-bottom: 10px;
}

/* Vision & Mission Section */
#vision-mission {
  padding: 60px 40px;
  background: #f9f9f9;
}

#vision-mission h2 {
  text-align: center;
  font-size: 2rem;
  color: #0a3d62;
  margin-bottom: 40px;
}

/* Vision Block */
.vision-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.vision-image img {
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.vision-content {
  flex: 1;
}

.vision-content h3 {
  font-size: 1.5rem;
  color: #0a3d62;
  margin-bottom: 15px;
}

/* Mission Block */
.mission-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-direction: row-reverse; /* image on right, content on left */
}

.mission-image img {
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mission-content {
  flex: 1;
}

.mission-content h3 {
  font-size: 1.5rem;
  color: #0a3d62;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vision-block,
  .mission-block {
    flex-direction: column;
    text-align: center;
  }

  .vision-image img,
  .mission-image img {
    max-width: 100%;
  }
}


/* Core Values Section */
#values {
  padding: 60px 40px;
  background: #f9f9f9;
}

#values h2 {
  text-align: center;
  font-size: 2rem;
  color: #0a3d62;
  margin-bottom: 40px;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* Card Style for Values */
.value {
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.value h3 {
  font-size: 1.3rem;
  color: #0a3d62;
  margin-bottom: 15px;
}

.value p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* Hover Effect */
.value:hover {
  transform: translateY(-5px);
}

/* Different background colors for each card */
.value:nth-child(1) {
  background: #eaf4ff; /* Integrity - light blue */
}
.value:nth-child(2) {
  background: #fff8e6; /* Expertise - light yellow */
}
.value:nth-child(3) {
  background: #e9f9f1; /* Client-Centricity - light green */
}
.value:nth-child(4) {
  background: #fceef3; /* Innovation - light pink */
}


/* Detailed Services */
#details {
  padding: 60px 40px;
  background: #fff;
}

#details h2 {
  color: #0a3d62;
  margin-bottom: 30px;
}

#details article {
  margin-bottom: 20px;
  padding: 20px;
  border-left: 4px solid #0a3d62;
  background: #f1f2f6;
  border-radius: 4px;
}

/* Clients */
/* Clients Section */
#clients {
  padding: 60px 40px;
  background: #f9f9f9;
  text-align: center;
}

#clients h2 {
  color: #0a3d62;
  font-size: 2rem;
  margin-bottom: 20px;
}

#clients p {
  margin-bottom: 40px;
  font-size: 1rem;
  color: #555;
}

/* Clients Container */
.clients-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-end; /* float right to left */
}

.client {
  flex: 1 1 250px;
  max-width: 300px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.client img {
  max-width: 80px;
  float: right; /* logo floats right */
  margin-left: 15px;
}

.client blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}


/* Contact Section */
#contact {
  padding: 60px 40px;
  background: #fff;
}

#contact h2 {
  color: #0a3d62;
  margin-bottom: 30px;
  text-align: center;
  font-size: 2rem;
}

/* Two-column layout */
.contact-container {
  display: flex;
  flex-wrap: wrap; /* ensures responsiveness */
  gap: 40px;
  justify-content: space-between;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background: #0a3d62;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button:hover {
  background: #fbc531;
  color: #000;
}

/* Ensure all elements calculate width correctly */
#gallery, #gallery * {
  box-sizing: border-box;
}

#gallery {
  width: 100%;
  padding: 50px 15px;
  overflow: hidden; /* Prevents horizontal scrolling */
  background-color: #fdfdfd;
}

#gallery h2 {
  text-align: center;
  margin-bottom: 10px;
}

#gallery > p {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  justify-content: center; /* Centers the items */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  flex: 1 1 calc(25% - 20px); /* Forces 4 items per row on desktop */
  min-width: 250px; /* Prevents items from getting too small */
  height: 250px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Forces image to fill the box without stretching */
  display: block;
}

/* Overlay that appears on hover */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 43, 91, 0.9); /* Dark Blue */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 15px;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Tablet: 2 items per row */
@media (max-width: 992px) {
  .gallery-item {
    flex: 1 1 calc(50% - 20px);
  }
}

/* Mobile: 1 item per row */
@media (max-width: 600px) {
  .gallery-item {
    flex: 1 1 100%;
  }
}


/* Footer */
footer {
  background: #0a3d62;
  color: #fff;
  padding: 20px 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-info {
  font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366; /* WhatsApp green */
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.whatsapp-btn img {
  width: 22px;
  height: 22px;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: scale(1.05);
}

/* Carousel Animation */
@keyframes slide {
  0% { transform: translateX(0); }
  45% { transform: translateX(0); }
  50% { transform: translateX(-100%); }
  95% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}
