/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/energy-efficient-spare-part-saudi-arabia.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Navigation Styles */
nav {
  background-color: #fff;
  padding: 0.5em 1em;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  height: 80px;
}

nav img {
    width: 200px;
    height: auto;
    margin-right: 50px;
    transition: transform 0.3s ease;
}

nav img:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: inline-flex;
}

nav li {
    margin: 0 1em;
}

nav a {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #333;
}

/* Contact Section Styles */
.contact-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    margin-top: 450px;
    animation: fadeIn 2s;
}

.contact-section h1 {
    font-size: 35px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
}

.contact-section h2 {
    font-size: 25px;
    margin-bottom: 10px;
    color: #fff;
}

.contact-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.contact-info {
  background-color: #f7f7f7;
  padding: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.contact-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 10px;
}

.contact-info p {
  color: #000;
  font-size: 17px;
}

.contact-info h3 {
  font-size: 20px;
    color: black;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 10px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

button[type="submit"] {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #3e8e41;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.image-frame {
  width: 25%;
  margin: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.image-frame:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.image-frame img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
}

.image-frame:hover img {
  opacity: 0.8;
}

.caption {
  font-size: 14px;
  text-align: center;
  padding: 10px;
  background-color: #333;
  border-top: 1px solid #ddd;
    color: white;
}

  .copyright {
    position: fixed;
    bottom: -10px;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: #fff;
    padding: 10px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .contact-section {
    font-size: 18px;
  }
  .image-frame {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .contact-section {
    font-size: 16px;
  }
  .image-frame {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}