/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header */
header {
  background: #00264d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

header .logo {
  font-size: 1.2rem;
  font-weight: bold;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #ffcc00;
}

/* Hero Section */
.hero {
  background: url("https://images.unsplash.com/photo-1581091215367-59ab0d70d43c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80") 
    no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #ffcc00;
  color: #00264d;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #e6b800;
}

/* Page Sections */
.page, .about {
  padding: 3rem 10%;
  text-align: center;
}

.page h1, .about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00264d;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #f4f4f4;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 0.8rem;
  color: #00264d;
}

/* Contact Form */
.contact-form {
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background: #00264d;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #004080;
}

/* Footer */
footer {
  background: #00264d;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.product-category {
  margin: 40px 0;
}

.product-category h3 {
  margin-bottom: 15px;
  color: #004466;
  border-bottom: 2px solid #006699;
  display: inline-block;
  padding-bottom: 5px;
}

/* Category menu */
.category-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 40px;
  justify-content: center;
}

.category-menu a {
  background: #004466;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.category-menu a:hover {
  background: #006699;
}

/* ===== ABOUT PAGE HERO SECTION ===== */
.about-hero {
  background: url("https://img.ccjdigital.com/files/base/randallreilly/all/image/2011/03/ccj.Cat-truck-2.png?auto=format%2Ccompress&fit=max&q=70&w=1200") no-repeat center center/cover;
  height: 50vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

/* 👇 Replace the link above with your image name or URL.
   Example: url("images/about-bg.jpg") */

.about-hero .overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.about-hero p {
  font-size: 1.1rem;
}

/* Vision and Clients List */
.vision-list, .clients-list {
  text-align: left;
  margin: 1.5rem auto;
  max-width: 700px;
  list-style: disc;
  padding-left: 1.5rem;
  color: #333;
}

.vision-list li, .clients-list li {
  margin-bottom: 0.5rem;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .about-hero {
    height: 40vh;
    padding: 1rem;
  }

  .about-hero h1 {
    font-size: 1.8rem;
  }

  .about-hero p {
    font-size: 1rem;
  }

  .page {
    padding: 2rem 5%;
  }

  .page h1, .page h2 {
    font-size: 1.5rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 35vh;
  }

  .about-hero h1 {
    font-size: 1.4rem;
  }

  .about-hero p {
    font-size: 0.9rem;
  }
}

/* Add spacing between section titles and paragraphs */
.page h2 {
  margin-top: 2.5rem;   /* space above each heading */
  margin-bottom: 1rem;  /* space below heading before text */
  color: #00264d;
  font-size: 1.8rem;
  text-align: left;
}

/* Optional – make paragraphs more readable */
.page p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  text-align: justify;
}

.page section {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* ===== HOME PAGE CUSTOM SECTION ===== */

/* Background image for homepage hero */
.home-hero {
  background: url("https://ev-a2z.com/wp-content/uploads/2022/11/Caterpillar-mining-truck.webp") 
    no-repeat center center/cover;
  height: 90vh;
  position: relative;
  color: white;
}

.home-hero .overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

/* About section */
.about {
  padding: 4rem 10%;
  background: #f9f9f9;
}

.about h2 {
  color: #00264d;
  margin-bottom: 1rem;
}

.about p {
  margin-bottom: 1rem;
  line-height: 1.7;
  text-align: justify;
}

/* Mission Section */
.mission {
  background: #fff;
  padding: 4rem 10%;
  text-align: center;
}

.mission h2 {
  color: #00264d;
  margin-bottom: 1rem;
}

.mission p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Why Choose Us Section */
.why-choose {
  padding: 4rem 10%;
  background: #f4f4f4;
  text-align: center;
}

.why-choose h2 {
  color: #00264d;
  margin-bottom: 2rem;
}

/* Call to Action */
.cta {
  background: #00264d;
  color: white;
  text-align: center;
  padding: 4rem 10%;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .home-hero {
    height: 70vh;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 1.5rem;
  }
}

/* ====== SERVICES PAGE STYLES ====== */
.services-page {
  position: relative;
 background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1500&q=80");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 5rem 8%;
  z-index: 1;
}

.services-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.services-page h1,
.services-page .cards {
  position: relative;
  z-index: 2;
}


.services-page .cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.services-page .card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1.8rem;
  transition: transform 0.3s, background 0.3s;
}

.services-page .card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.services-page .card h3 {
  color: #ffcc00;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.services-page .card p {
  color: #f2f2f2;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive tweak*/
@media (max-width: 768px) {
  .services-page {
    padding: 3rem 5%;
  }

  .services-page h1 {
    font-size: 2rem;
  }

  .services-page .card {
    padding: 1.2rem;
  }
}

/* Product Page Styles */

/* Intro Paragraph */
.products-page .intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #004466;
}

/* Category Menu */
.category-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 3rem;
}

.category-menu a {
  background: #004466;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.category-menu a:hover {
  background: #006699;
}

/* Product Categories */
.product-category {
  margin-bottom: 50px;
}

.product-category h2 {
  color: #00264d;
  margin-bottom: 20px;
  border-bottom: 2px solid #006699;
  display: inline-block;
  padding-bottom: 5px;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card h4 {
  color: #004466;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .category-menu {
    gap: 8px;
  }
}

/* --- PRODUCT PAGE --- */
.products-page {
  padding: 60px 20px;
  text-align: center;
  background: #f9fafb;
}

.products-page h1 {
  font-size: 2.5rem;
  color: #1b1b1b;
  margin-bottom: 10px;
}

.intro {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1rem;
}

/* Category Menu */
.category-menu {
  margin-bottom: 40px;
}

.category-menu a {
  text-decoration: none;
  color: #fff;
  background: #e63946;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  display: inline-block;
  transition: 0.3s ease;
}

.category-menu a:hover {
  background: #c82c3a;
}

/* Category Section */
.product-category {
  margin-bottom: 60px;
}

.product-category h2 {
  color: #222;
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  border-bottom: 2px solid #e63946;
  display: inline-block;
  padding-bottom: 5px;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h4 {
  padding: 12px;
  color: #333;
  font-size: 1.1rem;
}

/* --- General Reset --- */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* --- Header --- */
header {
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

header .logo {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
}

header ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
}

header a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s ease;
}

header a:hover, header .active {
  color: #e63946;
}

/* --- Hero --- */
.hero {
  background: url('images/rig-bg.jpg') center/cover no-repeat;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.1rem;
}

/* --- Category Menu --- */
.category-menu {
  text-align: center;
  margin: 40px 0;
}

.category-menu a {
  text-decoration: none;
  color: #fff;
  background: #e63946;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.3s ease;
}

.category-menu a:hover {
  background: #c92f3b;
}

/* --- Product Sections --- */
.products-page {
  padding: 40px 10%;
}

.product-category {
  margin-bottom: 80px;
}

.product-category h2 {
  color: #1b1b1b;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 30px;
  border-left: 4px solid #e63946;
  padding-left: 10px;
}

/* --- Product Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 15px 20px;
}

.product-info h4 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 8px;
}

.product-info p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* --- Footer --- */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ===== CONTACT PAGE STYLES ===== */

.page {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.page h1 {
  font-size: 2rem;
  color: #002147;
  margin-bottom: 15px;
}

.page p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f7f9fc;
  color: #222;
}

/* ===== HEADER ===== */
header {
  background: #002147;
  color: #fff;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover,
nav .active {
  color: #f8c10f;
}

/* ===== HERO SECTION ===== */
.contact-hero {
  text-align: center;
  padding: 80px 10%;
  background: linear-gradient(rgba(0,33,71,0.7), rgba(0,33,71,0.7)), 
              url('https://images.unsplash.com/photo-1581091870622-3f6b61a3f3e1?auto=format&fit=crop&w=1350&q=80') 
              center/cover;
  color: #fff;
}

.contact-hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ===== MAIN CONTACT SECTION ===== */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 10%;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h3 {
  color: #002147;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  flex: 1;
  min-width: 320px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
  color: #002147;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f8c10f;
  outline: none;
}

button {
  background: #002147;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #f8c10f;
  color: #002147;
}

/* ===== MAP SECTION ===== */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  margin-top: 40px;
}

/* ===== FOOTER ===== */
footer {
  background: #002147;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  nav {
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    padding: 60px 5%;
  }

  .contact-form {
    padding: 20px;
  }
}

/* Social Media Links Section */
.social-links {
  margin-top: 15px;
}

.social-links h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #003366;
}

.social-links a {
  display: inline-block;
  margin-right: 12px;
  text-decoration: none;
  color: #003366;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #00bcd4;
  transform: scale(1.2);
}

/* ==============================
   PROFILE PAGE STYLING
============================== */

.profile-page {
  padding: 60px 10%;
  background-color: #f9f9f9;
}

.profile-page section {
  margin-bottom: 60px;
}

/* Section Titles */
.profile-page h2 {
  color: #002147;
  margin-bottom: 15px;
  font-size: 28px;
  text-transform: uppercase;
  border-left: 5px solid #e6b800;
  padding-left: 10px;
}

/* CEO Section */
.profile-ceo {
  text-align: center;
  background: #fff;
  padding: 50px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ceo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ceo-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e6b800;
}

.ceo-info h3 {
  font-size: 24px;
  margin-bottom: 5px;
  color: #002147;
}

.ceo-info p {
  color: #555;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Team Section */
.profile-team {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.team-card {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.team-card h4 {
  color: #002147;
  margin-bottom: 5px;
}

.team-card p {
  color: #555;
  font-size: 14px;
}
