/* Basic Resets & Global Styles */
:root {
  --primary-dark-blue: #0F3D6C;
  --secondary-light-blue: #3498DB;
  --accent-gray: #B0B0B0;
  --text-dark: #333333;
  --text-light: #f4f4f4;
  --bg-light: #f9f9f9;
  --bg-dark: #2c3e50; /* A darker blue-gray for contrast sections */
  --font-sans: 'Roboto', sans-serif; /* Recommended Google Font */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

h1, h2, h3 {
  color: var(--primary-dark-blue);
  margin-bottom: 20px;
  line-height: 1.2;
}

h1 {
  font-size: 3.2em;
  font-weight: 700;
}

h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.8em;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--secondary-light-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Call to Action Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--secondary-light-blue);
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-dark-blue);
  transform: translateY(-2px);
  text-decoration: none;
}

.cta-button.secondary-cta {
  background-color: var(--primary-dark-blue);
}

.cta-button.secondary-cta:hover {
  background-color: var(--secondary-light-blue);
}

/* Header */
.main-header {
  background-color: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px; /* Adjust as needed */
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav a {
  color: var(--primary-dark-blue);
  font-weight: 600;
  font-size: 1.1em;
  transition: color 0.3s ease;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--secondary-light-blue);
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero-bg.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 150px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.hero-content {
  max-width: 800px;
}

.hero-section h1 {
  color: white;
  font-size: 3.8em;
  margin-bottom: 20px;
}

.hero-section .tagline {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* Services Section */
.services-section {
  background-color: #ffffff;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item i { /* For Font Awesome icons */
  font-size: 3em;
  color: var(--secondary-light-blue);
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-dark-blue);
}

/* Why Us Section */
.why-us-section {
  background-color: var(--bg-light);
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: left;
}

.feature-card h3 {
  color: var(--secondary-light-blue);
  font-size: 1.5em;
  margin-bottom: 15px;
}

/* Our Work Section */
.work-section {
  background-color: #ffffff;
  text-align: center;
}

.testimonial {
  background-color: var(--bg-light);
  padding: 30px;
  border-left: 5px solid var(--secondary-light-blue);
  margin: 50px auto;
  max-width: 800px;
  font-style: italic;
  font-size: 1.2em;
  color: var(--text-dark);
  line-height: 1.8;
}

.testimonial p {
  margin-bottom: 15px;
}

.testimonial footer {
  font-style: normal;
  font-size: 0.9em;
  color: #666;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.gallery-preview img {
  width: 100%;
  height: 250px; /* Uniform height for gallery images */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
  background-color: var(--primary-dark-blue);
  color: var(--text-light);
  text-align: center;
}

.contact-section h2 {
  color: white;
}

.contact-section p {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 1em;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
}

.contact-info {
  margin-top: 30px;
  font-size: 1.1em;
}

.contact-info a {
  color: var(--secondary-light-blue);
}

.contact-info a:hover {
  color: white;
}


/* Footer */
.main-footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9em;
}

.main-footer p {
  margin-bottom: 5px;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2em;
  }

  .main-nav ul li {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav ul li {
    margin: 0 10px 10px 10px;
  }

  .cta-button.header-cta {
    margin-top: 15px;
  }

  .hero-section h1 {
    font-size: 2.5em;
  }

  .hero-section .tagline {
    font-size: 1.2em;
  }

  .section-padding {
    padding: 60px 0;
  }

  h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .service-grid, .feature-list, .gallery-preview {
    grid-template-columns: 1fr;
  }

  .testimonial {
    margin: 30px auto;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }

  .main-nav ul li {
    margin: 0 8px 8px 8px;
  }

  .hero-section {
    padding: 100px 0;
    min-height: 50vh;
  }

  .hero-section h1 {
    font-size: 2em;
  }

  .hero-section .tagline {
    font-size: 1em;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

  h2 {
    font-size: 1.5em;
  }

  .service-item, .feature-card, .testimonial {
    padding: 20px;
  }

  .contact-form {
    gap: 15px;
  }
}


/* Optional: Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Optional: Font Awesome for Icons */
/* You would link this in your HTML <head> section as well: */
/* <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> */
/* Then you can use icons like: <i class="fas fa-ruler-combined"></i> for system sizing */
/* Or, for the specific classes I used: */
/* .icon-ruler { content: "\f543"; font-family: "Font Awesome 5 Free"; font-weight: 900; } */
/* (This method is more complex. Directly using Font Awesome classes is easier) */
