/* General Page Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* Header Styles */
header {
  background-color: #1b2a49; /* Dark blue */
  color: #fff;
  padding: 10px 0;
}

.header-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  justify-content: space-between;
  position: relative;
}

.logo-background-header {
  background-color: #fff;
  padding: 10px; /* Adjust padding to fit your design */
  border-radius: 35px; /* Optional: add rounded corners */
}

.logo {
  height: 125px; /* Adjust based on your logo's size */
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  display: block;
  padding: 10px 15px; /* Adjust padding to fit your design */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li:hover a {
  background-color: #ffffff;
  color: #1b2a49; /* Dark blue */
}

.language-selector {
  display: flex;
  align-items: center;
}

.language-selector button {
  background-color: #1b2a49; /* Dark blue */
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 14px;
}

.language-selector button:hover {
  background-color: #ffffff;
  color: #1b2a49; /* Dark blue */
}

/* Section Styles */
section {
  padding: 40px 20px;
  margin: 20px 0;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: justify; /* Justify text in sections */
}

section h2 {
  color: #1b2a49; /* Dark blue */
  margin-bottom: 20px;
}

section p {
  margin-bottom: 10px;
  text-align: justify; /* Justify text in paragraphs */
}

/* Services Section Styles */
#Services {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1b2a49, #23395d); /* Dark blue gradient */
  text-align: center;
}

#Services .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#Services h2 {
  color: #a7c4dd; /* Light blue from the logo */
  margin-bottom: 40px;
  font-size: 2em;
}

.services-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: calc(33% - 40px);
  max-width: calc(33% - 40px);
  text-align: center;
  perspective: 1000px; /* Needed for 3D flip effect */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 300px; /* Adjust height as needed */
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
}

.card-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff; /* White front */
}

.card img {
  max-width: 200px; /* Adjust image size as needed */
  margin-bottom: 20px;
}

.card h3 {
  color: #1b2a49; /* Dark blue */
  margin-bottom: 15px;
}

.card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1b2a49; /* Dark blue back */
  color: white;
  transform: rotateY(180deg);
}

/* Contact Info Styles */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info div {
  flex: 1 1 calc(33% - 20px);
  margin: 10px;
}

.contact-info div h3 {
  margin-top: 0;
  color: #0078d4;
}

/* Footer Styles */
footer {
  background-color: #1b2a49; /* Dark blue */
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  flex: 1;
  text-align: center;
}

.logo-background {
  display: inline-block; /* Allows padding and background color to wrap the logo */
  background-color: #fff;
  padding: 10px; /* Adjust padding to fit your design */
  border-radius: 35px; /* Optional: add rounded corners */
}

.footer-logo-img {
  height: 75px; /* Adjust based on your logo's size */
}

.footer-links {
  flex: 2;
  text-align: center;
}

.footer-links h3 {
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 5px 0;
}

.footer-links ul li a {
  color: #a7c4dd; /* Light blue */
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-social-media {
  flex: 1;
  text-align: center;
}

.footer-social-media h3 {
  margin-bottom: 10px;
}

.social-icon {
  height: 30px; /* Adjust based on your social media icon size */
  margin: 0 5px;
  vertical-align: middle;
}

.social-icon:hover {
  opacity: 0.7; /* Add a hover effect */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    justify-content: center;
  }

  .language-selector {
    margin-top: 10px;
  }

  .card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo,
  .footer-links,
  .footer-social-media {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
