/* Global Styles */
:root {
  --color-dark: #0a192f;
  --color-primary: #0072ce;
  --color-secondary: #00a8e8;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --color-gray: #e0e0e0;
  --font-family: 'Arial', sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-light);
  background-color: var(--color-dark);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background-color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 50px;
  margin-right: 0.5rem;
}

header nav {
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: var(--color-light);
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--color-secondary);
}

header .cta {
  display: flex;
  gap: 0.5rem;
}

header .cta a {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  color: var(--color-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header .cta a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Hero Section */
.hero {
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  margin-top: 80px; /* space for fixed header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.7);
  /* dark overlay */
}

.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
  color: var(--color-white);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-gray);
}

.hero-content .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

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

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

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

/* Section generic styles */
section {
  padding: 4rem 2rem;
}

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

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

/* Services */
.services {
  background-color: var(--color-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background-color: #0f2545;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

.service-item h3 {
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.4;
}

/* Stats counters */
.stats {
  background-color: #0f2545;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 3rem 2rem;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2.2rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--color-gray);
  font-size: 1rem;
}

/* About */
.about {
  background-color: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-content {
  max-width: 900px;
  text-align: center;
}

.about-content p {
  color: var(--color-gray);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  background-color: #0f2545;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.value-item h4 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.cta-banner .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-banner .btn-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.cta-banner .btn-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* Footer */
footer {
  background-color: #081427;
  color: var(--color-gray);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

form input,
form textarea,
form select {
  padding: 0.8rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
}

form input[type="submit"],
form button {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form input[type="submit"]:hover,
form button:hover {
  background-color: var(--color-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  header nav {
    display: none;
  }
  header .menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--color-light);
    cursor: pointer;
  }
  .stats {
    flex-direction: column;
  }

  /* When the mobile menu is active, display navigation as a vertical menu */
  header nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    padding: 1rem 2rem;
    gap: 1rem;
    z-index: 998;
  }
}