* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: Helvetica;
  color: #ccc;
  background-color: #111;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 300px;
  background-color: #000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

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

nav a {
  text-decoration: none;
  color: #ccc;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fff;
}

.hero {
  height: 90vh;
  background: url('img/bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  padding-left: 200px;
}

.hero-text {
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #c7c0b5;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.services {
  padding: 40px 300px;
  background-color: #111;
  color: #ccc;
}

.services h1 {
  font-size: 3rem;
  margin-bottom: 5px;
}

.services p {
  margin-bottom: 10px;
}

.service {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 1px;
}

.service h2 {
  font-size: 2rem;
  color: #c7c0b5;
  margin-bottom: 15px;
  border-bottom: 1px solid;
}

.service p {
  font-size: 1rem;
  line-height: 1.6;
  color: #b0b0b0;
}

.service:last-of-type {
  margin-bottom: 0;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 100px 300px;
  background-color: #111;
  color: #ccc;
}

.contact-info,
.logo {
  width: 48%;
}

.contact-info h2 {
  font-size: 2rem;
  color: #c7c0b5;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-info a {
  color: #ccc;
  text-decoration: none;
}

.logo img {
  height: 500px;
  width: 500px;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #333;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

button:hover {
  background-color: #444;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 20px 60px;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  margin-top: auto;
}

.footer p {
  margin: 0;
}

/* Mobile Optimization */

@media (max-width: 768px) {
  .navbar {
    padding: 20px 20px; /* Reduce padding */
  }

  .logo {
      font-size: 1.2rem; /* Smaller logo font on mobile */
  }

  nav ul {
    flex-direction: column; /* Stack menu items vertically */
    gap: 20px;
  }

  .hero {
    padding-left: 20px; /* Reduce padding for hero on smaller screens */
    height: 70vh; /* Adjust height for hero section */
  }

  .hero-text h1 {
    font-size: 2rem; /* Smaller heading */
  }

  .services {
    padding: 40px 20px; /* Reduce padding for mobile */
  }

  .service {
    padding: 15px; /* Less padding for service items */
  }

  .contact {
    flex-direction: column; /* Stack contact items vertically */
    padding: 50px 20px; /* Adjust padding */
  }

  .contact-info,
  .logo {
    width: 100%; /* Make both sections full width */
    margin-bottom: 20px; /* Add some space between them */
  }

  .contact-info h2 {
    font-size: 1.5rem; /* Adjust heading size */
  }

  .contact-info p {
    font-size: 0.9rem; /* Reduce text size */
  }

  .logo img {
    width: 100%; /* Make the logo responsive */
    height: auto; /* Maintain aspect ratio */
  }

  .footer {
    padding: 20px 10px; /* Adjust footer padding */
    font-size: 0.8rem; /* Smaller footer text */
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem; /* Even smaller heading for smaller screens */
  }

  .hero-text p {
    font-size: 0.9rem; /* Smaller paragraph text */
  }

  .services h1 {
    font-size: 2.5rem; /* Smaller heading for services */
  }

  .service h2 {
    font-size: 1.5rem; /* Smaller service title */
  }

  .contact-info h2 {
    font-size: 1.2rem; /* Even smaller contact info title */
  }

  .contact-info p {
    font-size: 0.8rem; /* Reduce contact info text size */
  }

  .footer p {
    font-size: 0.7rem; /* Smaller footer text on very small screens */
  }
}

