:root {
  --primary-color: #0E3A53; /* dark blue */
  --secondary-color: #1C7EC7; /* medium blue */
  --accent-color: #FEC525; /* amber accent */
  --light-bg: #F4F7FA;
  --dark-bg: #021B33;
  --text-color: #333;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
#header {
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navigation a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navigation a:hover {
  color: var(--secondary-color);
}

/* Hero */
.hero {
  position: relative;
  background: url('assets/images/hero-bg.png') no-repeat center/cover;
  color: #fff;
  text-align: left;
  height: 80vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* About */
.about p {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.about-figure {
  text-align: center;
  margin: 1.5rem 0 2rem 0;
}
.about-figure img {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.about-item {
  flex: 1 1 250px;
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.about-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.services-visual {
  text-align: center;
  margin-bottom: 1.5rem;
}
.services-visual img {
  width: 100%;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

.service-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* CTA */
.cta {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.cta-container h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta-container p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile / Responsive tweaks */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 32px;
  padding: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  margin: 5px 0;
  border-radius: 2px;
}

/* Make form controls and buttons full width on small screens */
.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form button {
  width: 100%;
  padding: 0.85rem;
}

.contact-image { text-align: center; margin-bottom: 1rem; }
.contact-image img { width: 50%; max-width: 560px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }

/* Power System Analysis feature list */
.psa-overview { text-align: left; }
.psa-overview > p { margin-bottom: 1.25rem; color: #444; }
.psa-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}
.psa-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.psa-feature img {
  width: 280px;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.psa-text h4 { margin: 0 0 0.35rem 0; font-size: 1rem; color: var(--primary-color); }
.psa-text p { margin: 0; font-size: 0.98rem; color: #333; line-height: 1.5; }

@media (max-width: 900px) {
  .psa-features { grid-template-columns: 1fr; }
  .psa-feature img { width: 210px; height: 140px; flex: 0 0 210px; }
}

@media (max-width: 768px) {
  .header-container {
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform-origin: top;
    display: none;
  }

  .navigation.active {
    display: block;
  }

  .navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem;
  }

  .navigation li {
    border-bottom: 1px solid #f1f1f1;
    padding: 0.75rem 0;
  }

  .navigation a {
    display: block;
    padding: 0.5rem 0;
  }

  .nav-toggle { display: flex; }
  .navigation { display: none; }

  .hero {
    height: 60vh;
    align-items: flex-end;
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p { font-size: 1rem; }

  .about-grid,
  .services-grid {
    gap: 1rem;
  }

  .about-item,
  .service-card {
    padding: 1.25rem;
  }

  .cta-container h2 { font-size: 1.5rem; }

}

@media (max-width: 420px) {
  .hero { height: 55vh; }
  .hero h1 { font-size: 1.5rem; }
  .hero-content { max-width: 95%; }
}

.btn.btn-secondary {
  border-color: #fff;
}

/* Contact */
.contact {
  background-color: var(--light-bg);
}

.contact p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.contact-form {
  max-width: 600px;
  margin: auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.contact-form button {
  display: block;
  margin: auto;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 2rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-container p {
  margin-bottom: 0.5rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .navigation ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}
