
/* MAIN PAGE FORMATTING */

.hero-section {
  max-width: 100%;
  margin: 0 auto;
  text-align: center; 
}

.hero-section img {
  max-width: 100%;
  height: auto;     
  display: inline-block;
}


.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: white;
  z-index: 1000;       
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #0e1e25;
  padding: 20px 0;
  color: white;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Inter', sans-serif; 
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu ul li a:hover {
  color: #f0c040;
}

.hero-section {
  position: relative;
  height: 850px;
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-section {
  position: relative;
  height: 850px;
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* 10% darkness */
  z-index: 1;
}

/* Centered Text */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.hero-text h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-text p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #f0c040;
  color: #0e1e25;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.hero-btn:hover {
  background-color: #ddb030;
}

/* Animation Keyframes */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to text */
.hero-text h1,
.hero-text p,
.hero-btn {
  opacity: 0;
  animation: fadeSlideIn 1s ease-out forwards;
}

/* Add delay for a nice staggered effect */
.hero-text h1 {
  animation-delay: 0.2s;
}

.hero-text p {
  animation-delay: 0.4s;
}

.hero-btn {
  animation-delay: 0.6s;
}

.car-gallery {
  padding: 60px 20px;
  background-color: #0e1e25;
  text-align: center;
}

.section-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 500;
  color: white;
}

/*CAR GRID*/
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.car-card {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  color: black;
  margin-left: 5px;
  margin-right: 5px;
}

.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-card h3 {
  margin: 15px;
  font-size: 20px;
}

.car-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}


/*ABOUT SECTION*/
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 60px 40px;
  background-color: #f4f4f4;
}

.about-content {
  flex: 1 1 50%;
  padding-right: 30px;
}

.about-content h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.about-content p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.about-image {
  flex: 1 1 45%;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-btn {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #222;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}


/* ABOUT PAGE FORMATTING */
.about-btn:hover {
  background-color: #444;
}

.footer {
  background-color: #222;
  color: #eee;
  padding: 40px 20px;
  text-align: center;
}

.footer h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
  color: white;
}

.footer p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 8px 0;
  font-size: 15px;
  color: #ccc;
}

.footer-phone,
.footer-location {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  color: #ddd;
  font-size: 16px;
}

.footer-socials {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-socials a {
  color: #00ffae;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 13px;
  color: #aaa;
}

.simple-header {
  background-color: #222;
  color: white;
  padding: 30px;
  text-align: center;
}

.simple-header h1 {
  margin-bottom: 10px;
}

.back-home {
  color: #00ffae;
  text-decoration: none;
  font-size: 14px;
}

.about-page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}


/* CONTACT FORMAT */

/* Container */
.contact-section {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Heading */
.contact-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

/* Inputs & Textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  background: white;
}

/* Button */
.contact-form button {
  width: 100%;
  padding: 14px;
  background-color: #0e1e25;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #333;
}

/* Flash Message */
.flash {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

/* ABOUT PAGE PHOTO CARDS */
.about-page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center; /* centers text and image by default */
}

.about-image-card {
  margin-top: 30px;
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.about-image-card img {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.about-image-card1 {
  margin-top: 30px;
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.about-image-card1 img {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.about-image-card2 {
  margin-top: 30px;
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.about-image-card2 img {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.about-image-card3 {
  margin-top: 30px;
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.about-image-card3 img {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* STYLING OF SERVICES PAGE */

.services-section {
  padding: 60px 20px;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 1200px;
  margin: 0 auto 40px;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #0e1e25;
}

.card p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  color: #444;
  flex: 1;
}


.about-logo {
  text-align: center;
  margin: 20px 0;
}

.about-logo img {
  max-width: 200px;
  height: auto;
}

.omvic_text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: black;
  font-weight: 500;
}


/*MOBILE VERSION*/

@media (max-width: 768px) {
  /* HEADER */
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  /* HERO TEXT */
  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-section {
    height: 500px;
  }

  /* ABOUT SECTION */
  .about-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .about-content,
  .about-image {
    flex: 1 1 100%;
    padding: 0;
  }

  .about-content h2 {
    font-size: 26px;
  }

  .about-content p {
    font-size: 16px;
  }

  /* FOOTER */
  .footer-socials {
    gap: 15px;
  }

  /* CARDS */
  .car-card img {
    height: 160px;
  }

  .car-card h3 {
    font-size: 18px;
  }

  /* SERVICES CARDS */
  .card {
    align-items: center;
    text-align: center;
  }

  .card h2 {
    font-size: 20px;
  }

  .card p {
    font-size: 15px;
  }

  /* ABOUT IMAGE CARDS */
  .about-image-card,
  .about-image-card1,
  .about-image-card2,
  .about-image-card3 {
    margin: 20px auto;
  }

  /* CONTACT FORM */
  .contact-section {
    padding: 15px;
    margin: 30px 10px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 15px;
  }

  .contact-form button {
    font-size: 15px;
  }
}
