body {
  margin: 0;
  font-family: Arial;
  background: #f8fbff;
  color: #1e3a8a;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.navbar {
  background: #fffafa;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar a {
  margin-left:40px;
  text-decoration: none;
  color: #1e3a8a;
}

.navbar nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.btn-nav {
  background: #3b82f6;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.navbar .logo {
  height: 70px;
}

.page-header {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(to right, #e0f2fe, #f8fbff);
  border-radius: 0 0 40px 40px;
}

.page-header h1 {
  font-size: 42px;
}

.page-header p {
  margin-top: 20px;
  line-height: 25px;
  color: #555;
  margin-bottom: 25px;
}

.page-tagline {
  font-size: 16px;
  color: #3b82f6;
  font-weight: 500;
  margin-top: 10px;
}

.services-grid {
  padding: 60px 0;
  text-align: center;
}

.services-grid h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.subtitle {
  color: #555;
  margin-bottom: 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 80px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.card i {
  font-size: 40px;
  color: #3b82f6;
  margin-bottom: 15px;
}

.card h3 {
  margin: 10px 0;
}

.card p {
  font-size: 14px;
  line-height: 22px;
  color: #444;
}

.card:hover {
  transform: translateY(-8px);
}

.card > i {
  width: 80px;
  height: 80px;
  background: white;
  color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: absolute;
  top: -40px;   
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: #3b82f6;
  font-size: 18px;
  text-decoration: none;
}

.arrow:hover {
  color: #1e3a8a;
}

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.btn {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  box-shadow: 0 8px 20px rgba(59,130,246,0.3);
  border: none;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 25px rgba(59,130,246,0.4);
}

.btn-outline {
  border: 2px solid #3b82f6;
  color: #3b82f6;
  background: transparent;
}

.btn-outline:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-4px) scale(1.03);
}

footer {
  text-align: center;
  padding: 20px;
  background: #e0f2fe;
}

.socials {
  margin-top: 15px;
}

.socials a {
  display: inline-flex;          
  align-items: center;          
  justify-content: center;       
  width: 40px;
  height: 40px;
  background: #e0f2fe;
  border-radius: 50%;
  color: #1e3a8a;
  font-size: 18px;
}

.socials a:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-3px);
  transition: 0.3s;
}

.socials a:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-3px);
  transition: 0.3s;
}

@media (max-width: 992px) {
  .page-header h1 {
    font-size: 36px;
  }

  .cards {
    gap: 40px; 
  }
}

@media (max-width: 768px) {

  .btn,
  .btn-outline {
    width: 100%;          
    justify-content: center;
  }

  .nav-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .navbar a {
    margin: 8px 0;
    padding: 10px;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    background: #f8fbff;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr; 
    gap: 30px;
  }

  .card {
    width: 100%;
    padding: 20px;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;  
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #1e3a8a; 
  border-radius: 2px;
  transition: 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-toggle span {
  transition: 0.3s;
}

@media (max-width: 480px) {

  .btn,
  .btn-outline {
    font-size: 13px;
    padding: 12px;
  }

  .nav-toggle {
      display: flex; 
  }

  .navbar nav {
    display: none; 
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
    background: #fffafa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .navbar nav.active {
    display: flex; 
  }

  .nav-flex {
    padding: 15px;
  }

  .navbar a {
    font-size: 16px;
    margin: 6px 0;
  }

  .btn-nav {
    font-size: 16px;
    padding: 10px;
  }

  .page-header {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .page-header p {
    font-size: 14px;
    line-height: 22px;
  }

  .cards {
    gap: 20px;
  }

  .card {
    padding: 15px;
  }

  .card > i {
    width: 60px;
    height: 60px;
    font-size: 24px;
    top: -30px;
  }

  .socials a {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}