/* Reset default browser styles */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
  text-align: center; /* Center align the entire content */
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

header {
  background-color: #333;
  color: #fff;
  padding: 1rem 0;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}

nav ul li a:hover {
  text-decoration: underline;
}

section {
  padding: 60px 0;
  background-color: #fff;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.service h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.service img {
  width: 100%; /* Ensure images are 100% width of their container */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 10px;
  text-align: justify; /* Justify text to match photo width */
}

#contact {
  background-color: #f2f2f2;
  text-align: center;
  padding: 60px 0;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

#contact p {
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }

  header h1 {
    font-size: 2rem;
  }

  nav ul li {
    display: block;
    margin: 10px 0;
  }

  .service {
    text-align: left;
  }

  .service img {
    width: 100%;
  }
}
