* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #111;
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 50;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: #ffcc00;
}
#logoimg {
  margin: auto;
  border-radius: 50%;
  position: absolute;
  right: 11rem;
}
.header {
  min-height: 45vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1556740749-887f6717d7e4");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  top: 4.7rem;
  margin-bottom: 5rem;
}

.header h1 {
  font-size: 34px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media (max-width: 570px) {
  h2 {
    position: relative;
    left: 1rem;
  }
  #logoimg {
    position: absolute;
    left: 1rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .header h1 {
    font-size: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
