html {
  scroll-behavior: smooth;
}

body {

  margin: 0; 
  padding: 0;
  }

header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
}

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

nav ul li {
  margin: 0 15px;
}


nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

section {
  padding: 40px;
}

footer {
  color: white;
  background-image: url("pictures/forfooter.jpg");
  background-size: cover; 
  background-position: center; 
  height: 200px; 
  display: flex; 
  justify-content: center;
  align-items: center; 
}
.logo{
  margin: 7px;
  font-size: 30px;
  font-weight: bold;
}
.navbar{
  margin: 5px;
  font-size: 15px;
  font-weight: bold;
}

.about{
  color: #2b61d6;
  text-align: justify;
}
#contact {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 20px auto;
}

#contact h2 {
  text-align: center;
  color: #333;
}

#contact form {
  display: flex;
  flex-direction: column;
}

#contact input,
#contact textarea {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

#contact button {
  padding: 10px;
  color: white;
  border: none;
  background-color: #27292c;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

#contact button:hover {
  background-color: #688bd6;
}

.image-container {
  display: flex;               
  justify-content: center;   
  gap: 20px;                
}

.services {
text-align: center;
font-size: 20px;
margin-top: 40px;
}
.intro {
padding: 40px;
background-color: #fff;
margin: 20px 0;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.intro p {
font-size: 1.2em;
}
.applet-flex-container {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
margin-top: 30px;
}

.card {
width: 18rem;
margin-bottom: 20px;
}
.about-content h2 {
  font-size: 2rem;
  color: #333;
}

.about-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.backg {
  background-image: url("pictures/forfooter.jpg");
  background-size: cover; 
  background-position: center; 
  height: 300px; 
  display: flex; 
  justify-content: center;
  align-items: center; 
}

h1 {
  color: rgb(255, 255, 255); 
}
.intro-sec {
  border-radius: 8px; 
  max-width: 1450px;  
  margin: 20px auto; 
}

.intro{
  border: 2px solid rgba(0, 0, 0, 0.8); 
  border-radius: 8px; 
  background-color: rgba(255, 255, 255, 0.05); 
  max-width: 1300px; 
  margin: 5px auto; 
}

.intro h3 {
  color: #333;
}

.intro p {
  color: #555; 
}
.image-sec {
  text-align: center; 
  margin: 5px auto; 
}

.image-sec img {
  max-width: 100%; 
  height: auto; 
}

.Abouts{
  color: rgb(0, 0, 0);
}

.bottom-phara {
  border: 2px solid rgba(20, 56, 175, 0.8); 
  border-radius: 15px; 
  background-color:rgba(23, 40, 96, 0.8); 
  max-width: 800px; 
  margin: 20px auto; 
}
.bottom-phara p {
  color: white;
}

.center-photo {
  width: 100%; 
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center; 
  overflow: hidden; 
}

.center-photo img {
  max-width: 50%; 
  max-height: 50%; 
  object-fit: cover; 
}
.gallery {
  display: flex;
  justify-content: space-between; 
  gap: 10px; 
  max-width: 1200px; 
  margin: 20px auto; 
}

.image-container {
  display: flex;
  flex-direction: column; 
  padding: 0; 
}

.image-container.portrait {
  flex: 0 0 600px; 
  height: 600px; 
}

.image-container.portrait img {
  width: 100%; 
  height: 100%;
  object-fit: cover; 
}

.image-container.right-side {
  display: flex;
  flex-direction: column; 
  gap: 10px; 
  flex: 1; 
  height: 600px; 
}

.image-container.row {
  display: flex;
  justify-content: space-between; 
  gap: 10px; 
  flex: 1; 
  height: 50%; 
}

.image-container.row img {
  width: 48%; 
  height: 100%; 
  object-fit: cover; 
}

.additional-gallery {
  display: flex;
  justify-content: space-between; 
  gap: 10px; 
  max-width: 1200px; 
  margin: 20px auto; 
}

.additional-gallery .image-container {
  flex: 0 0 48%; 
}

.additional-gallery .image-container img {
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
}

.additional-gallery:nth-of-type(3) {
  display: flex;
  justify-content: space-between;
  gap: 10px; 
  max-width: 1200px; 
  margin: 20px auto;
}

.additional-gallery:nth-of-type(3) .image-container {
  flex: 0 0 32%; 
}

.additional-gallery:nth-of-type(3) .image-container img {
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
}

.additional-gallery:nth-of-type(4) {
  display: flex;
  justify-content: center;
  max-width: 1200px; 
  margin: 20px auto;
}

.additional-gallery:nth-of-type(4) .image-container {
  flex: 0 0 100%; 
}

.additional-gallery:nth-of-type(4) .image-container img {
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
}


@media (max-width: 768px) {
  .gallery {
    flex-direction: column; 
    gap: 20px;
  }

  .image-container.portrait {
    flex: 0 0 100%; 
  }

  .image-container.right-side {
    flex: 0 0 100%; 
  }

  .additional-gallery {
    flex-direction: column; 
    gap: 20px;
  }

  .additional-gallery .image-container {
    flex: 0 0 100%; 
  }

  .additional-gallery:nth-of-type(3) .image-container {
    flex: 0 0 100%; 
  }
}
