* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: #f5f7fb;
  color: #333;
}

.container {
  width: 1200px;
  max-width: 95%;
  margin: auto;
  padding: 0 15px; /* ADD THIS */
}

/* HEADER */
header {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  padding: 20px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 140px;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* HERO */
.hero {
  position: relative;
  background: url('images/ccc.png') no-repeat right center/cover;
  height: 450px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.753) 0%,
    rgba(255, 255, 255, 0.753) 40%,
    rgba(255, 255, 255, 0.753) 70%,
    rgba(255, 255, 255, 0.753) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 600px;
  margin-left: 80px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 18px;
  color: #082864;
  margin-bottom: 30px;
  line-height: 1.7;
  text-align: left;
}

.hero-text button {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* SECTIONS */
section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

h2 {
  text-align: center;
  color: rgb(42, 82, 152);
  margin-bottom: 10px;
}

section p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.grid a {
  display: block;
  text-decoration: none;
}

.grid a .card {
  height: 100%;
}
/* CARDS */
.card {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(17, 75, 174, 0.06);
  transition: 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 70%;
}

.card i {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  color: rgb(42, 82, 152);
}
.card h3{
  color: rgb(42, 82, 152);
}

.card p{
  color: rgb(42, 82, 152);
}

/* PROJECTS */
.project {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(174, 194, 234, 0.04), transparent);
}

.project span {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: rgb(255, 255, 255);
  font-weight: 600;
}


/* FOOTER */
footer {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  color: white;
  padding: 30px 0;
  text-align: center;
}


footer .text{

  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;
  gap: 20px;

}


/* BACKGROUNDS FOR SECTIONS */

.companies {
  background: linear-gradient(180deg, #ffffff, #eef3ff);
}

.services {
  background: linear-gradient(180deg, #f5f7fb, #e8f0ff);
}

.projects {
  background: linear-gradient(180deg, #ffffff, #f0f4ff);
}





@media (max-width: 768px) {

  /* NAVBAR */
  .nav {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 60px 0;
    background-position: center;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin-left: 0;
    width: 100%;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  /* FOOTER */
  footer .text {
    flex-direction: column;
    gap: 10px;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {

  .hero-text {
    margin-left: 40px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

}