/* General Styles */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* Header styling */
.main-header {
  background-color: #002d72; /* Navy background to match hero section */
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.nav-links li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.nav-links a {
  color: #d1a15a; /* Gold color for contrast */
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #e6b880; /* Lighter gold on hover */
}

/* Hero Section styling */
.hero {
  background: linear-gradient(135deg, #002d72 0%, #d1a15a 100%); /* Navy to Gold gradient */
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h2 {
  font-size: 2.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: #d1a15a; /* Gold accent color */
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  font-family: 'Open Sans', sans-serif;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.btn-primary {
  background-color: #d1a15a;
  color: #002d72;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease; /* Added transform for smooth hover */
}

.btn-primary:hover {
  background-color: #e6b880;
  color: #002d72;
}

/* About Section styling */
.about {
  background-color: #f5f5f5; /* Light gray background for contrast */
  padding: 4rem 2rem;
  text-align: center;
  color: #002d72; /* Navy text color to match the theme */
}

.about h2 {
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #d1a15a; /* Gold color for the heading */
  margin-bottom: 1rem;
}

.about p {
  font-size: 1.1rem;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: #333; /* Darker color for readability */
}

/* Partners Section */
.partners {
  background: #f9f9f9;
  padding: 2rem;
  text-align: center;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.partner-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Services Section */
/* Service Item Styling */
.service-item {
  background: #f7f7f7;
  padding: 1.5rem;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative; /* Enables absolute positioning of the hover brief */
  overflow: hidden; /* Ensures content stays within boundaries */
  cursor: pointer; /* Changes cursor to pointer */
  transition: transform 0.3s ease; /* Adds subtle scaling effect on hover */
}

.service-item:hover {
  transform: scale(1.05); /* Scales up the service item slightly */
}

/* Hidden Brief Styling */
.service-brief {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 45, 114, 0.9); /* Semi-transparent navy background */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease; /* Fade effect */
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-item:hover .service-brief {
  opacity: 1; /* Shows the brief on hover */
}

.service-brief p {
  margin: 0.5rem 0;
}

/* General Styles for Services Section */
.services {
  padding: 50px 20px;
  background-color: #f9f9f9; /* Light background for contrast */
}

.services h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  color: #333; /* Dark color for headings */
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* Space between items */
}

/* Popup Modal Styles */
.popup-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
}

.popup-content {
  background-color: #fff; /* White background */
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px; /* Padding around the content */
  border: 1px solid #888; /* Gray border */
  width: 80%; /* Could be more or less depending on screen size */
  max-width: 600px; /* Max width for larger screens */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

.close {
  color: #aaa; /* Close button color */
  float: right; /* Float to the right */
  font-size: 28px; /* Font size */
  font-weight: bold; /* Bold font */
}

.close:hover,
.close:focus {
  color: black; /* Change color on hover */
  text-decoration: none; /* No underline */
  cursor: pointer; /* Pointer cursor */
}

.blog-section {
    padding: 40px;
    background-color: #f9f9f9;
}

.blog-section h2 {
    text-align: center;
    color: #333;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-post {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.2s;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.blog-post p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.blog-post a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 0.9em;
}

/* Our Clients Section */
.clients {
    background: linear-gradient(135deg, #f9f9f9 0%, #e0e0e0 100%); /* Gradient background */
    padding: 4rem 2rem;
    text-align: center;
    border-top: 5px solid #d1a15a; /* Gold accent on top */
}

.clients h2 {
    font-size: 2.5rem;
    color: #002d72; /* Navy color for heading */
    margin-bottom: 2rem;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Space between client logos */
}

.client-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth scaling */
}

.client-item img {
    max-width: 150px; /* Limit logo size */
    height: auto;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.client-item:hover {
    transform: scale(1.1); /* Scale effect on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Increase shadow on hover */
}

/* Client Testimonials Section */
.testimonials {
    padding: 4rem 2rem;
    text-align: center;
    background: #fff; /* White background for contrast */
    border-top: 5px solid #d1a15a; /* Gold accent on top */
}

.testimonials h2 {
    font-size: 2.5rem;
    color: #002d72; /* Navy color for heading */
    margin-bottom: 2rem;
}

.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center testimonials */
    gap: 1.5rem; /* Space between testimonials */
}

.testimonial-item {
    background-color: #f7f7f7; /* Light gray background for testimonials */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px; /* Max width for larger screens */
    margin: 1rem; /* Space between testimonials */
    position: relative; /* For positioning the quote icon */
}

.testimonial-item p {
    font-size: 1.2rem;
    color: #333; /* Darker color for readability */
    margin-bottom: 0.5rem;
}

.testimonial-item cite {
    font-size: 1rem;
    color: #666; /* Gray color for citation */
    display: block; /* Make citation block */
    margin-top: 1rem;
}

/* Quote Icon */
.testimonial-item::before {
    content: '“'; /* Open quote */
    font-size: 4rem; /* Large quote icon */
    color: #d1a15a; /* Gold color */
    position: absolute;
    top: -20px; /* Position above the item */
    left: 10px; /* Position from the left */
}

/* Read More Button */
.read-more {
    display: inline-block; /* Inline block for better padding */
    margin-top: 2rem; /* Space above the button */
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .client-list {
        flex-direction: column; /* Stack client logos vertically */
    }
}

/* Contact Section */
.contact {
  padding: 2rem;
  text-align: center;
}

/* Footer Section */
.footer {
  background: #002d72; /* Deep Navy */
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* Responsive Adjustments and Transitions */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .service-list, .partner-list {
    flex-direction: column;
  }

  .footer {
    padding: 2rem 0;
  }

  .btn-primary {
    padding: 14px 30px;
  }
}

/* Smooth Transitions */
.service-item, .btn-primary, .popup-content {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
