/* General styles for the page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
}

/* Header Styling */
header {
  background-color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10; /* Make sure header stays on top */
}

header .logo img {
  width: 250px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.1);
}

.hamburger-menu {
  display: none;
  font-size: 30px;
  color: black;
  cursor: pointer;
  z-index: 11; /* Make sure hamburger is above hero */
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: black;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  color: #f7a800;
  transform: translateY(-5px);
}

@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #3a6f9f;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  nav.active ul {
    display: flex;
  }

  nav ul li {
    margin: 15px 0;
  }
}

/* Hero Section */
#hero {
  background: #085f8c;
  color: white;
  padding: 120px 20px;
  text-align: center;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.4);
}

.hero-heading {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.6rem;
  max-width: 800px;
  color: #fff;
  margin: 0 auto;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.cta-button {
  padding: 15px 30px;
  background-color: #f7a800;
  color: white;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #bf74d1;
  transform: translateY(-5px);
}

/* Section Styling */
section {
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 20px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

section h2 {
  margin-bottom: 20px;
  font-size: 2.8rem;
  color: #333;
  text-transform: uppercase;
}

section p {
  max-width: 100%;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  padding: 0 10px;
  text-align: center;
}

/* Service Cards */
.service-card, .principle {
  display: inline-block;
  width: 30%;
  margin: 10px;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .principle:hover {
  transform: translateY(-10px);
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 50px;
  color: #0288d1;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: rotate(15deg);
}

/* Footer Styling */
footer {
  background-color: #3a6f9f;
  color: white;
  text-align: center;
  padding: 50px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #f7a800;
}

footer .contact {
  margin-bottom: 20px;
}

footer .contact p {
  font-size: 1.2rem;
  margin: 5px 0;
  color: #e0e0e0;
}

footer .social-links {
  margin-top: 20px;
}

footer .social-links a {
  margin: 0 15px;
  font-size: 35px;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
  border-radius: 50%;
  background-color: transparent;
  display: inline-block;
  border: 2px solid transparent;
}

footer .social-links a:hover {
  color: #f7a800;
  transform: scale(1.1);
  background-color: rgba(247, 168, 0, 0.1);
  box-shadow: 0 4px 15px rgba(247, 168, 0, 0.3);
  border-color: #f7a800;
}

footer .social-links a:active {
  transform: scale(1);
  background-color: rgba(247, 168, 0, 0.2);
}

/* Mobile responsiveness fixes */
@media screen and (max-width: 768px) {
  section {
    padding: 40px 15px; /* Less padding for smaller screens */
  }

  .service-card, .principle {
    width: 90%; /* Service cards should take up more space on mobile */
    margin: 10px auto;
  }

  .hero-heading {
    font-size: 2.8rem; /* Slightly smaller heading on mobile */
  }

  .cta-button {
    width: 100%;
    padding: 15px 30px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 100%;
    background-color: #3a6f9f;
    padding: 20px;
  }

  nav.active ul {
    display: flex;
  }

  nav ul li {
    margin: 15px 0;
  }

  .hero-description {
    font-size: 1.4rem; /* Adjust font size for mobile screens */
    padding: 0 20px;
  }
}