/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Header and Navigation */
header {
  background: #004080;
  color: #fff;
  padding: 1rem 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
}

/* Hero Section with Background Image */
#hero {
  background-image: url('images/sqlogo.jpeg'); /* or your uploaded logo path */
  background-size: auto; /* or adjust width as needed */
  border: none;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #e6f0ff;
  height: 600px; /* Increased height */
  padding: 6rem 2rem; /* More vertical space */
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.8); /* Light overlay for readability */
  z-index: 0;
}

#hero h2,
#hero p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* About Section Layout */
#about {
  border-top: 1px solid #ccc;
  margin-top: 4rem;
  padding-top: 2rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.about-image {
  flex: 1 1 300px;
  max-width: 300px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive stacking on smaller screens */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    max-width: 100%;
  }
}

#services {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #444;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 2rem;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Contact Section Layout */
#contact {
  border-top: 1px solid #ccc;
  margin-top: 4rem;
  padding-top: 2rem;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.contact-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.contact-image {
  flex: 1 1 300px;
  max-width: 300px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive stacking */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-image {
    max-width: 100%;
  }
}

/* Section Layout */
section {
  padding: 2rem;
  max-width: 800px;
  margin: 4rem auto;
  border-bottom: 1px solid #ccc;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #ddd;
}