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

:host {
  width: 100vw;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #333;
}

.logo img {
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
  object-fit: contain;
}

.header-bottom {
    justify-content: center;
    min-height: calc(100vh - 245px);
    display: flex;
    flex-direction: column
}


.container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Header (Hero Section) */
.hero {
  background-image: url("./assets/header-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #0d47a1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  /* display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative; */
  text-align: center;
  padding: 20px; /* Added padding for smaller screens */
}

/* Optional: Dark overlay to make text more visible on top of the image */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay with 40% opacity */
  z-index: -1; /* Place the overlay behind the content */
}

.hero .logo {
  /* position: absolute;
  top: 0px;
  left: 0px; */
  object-fit: contain;
  display: flex;

}

.hero .logo img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.header-text {
  max-width: 100%;
  margin-bottom: 5%;
}

.header-text h1 {
  font-size: 4rem; /* Increased font size for "Powering Payments" */
  /* margin-bottom: 20px;
  margin-top: -70px; */
}

.header-text h2 {
  font-size: 1.1rem; /* Increased font size for "Plug. Deploy. Scale." */
  margin-bottom: 20px;
  margin-top: 30px;
  font-weight: 400;
  color: black;
}

/* Header Text */
.header-text .subheadline {
  font-size: 1.5rem; /* Increased font size for the paragraph */
  margin-bottom: 30px;
  color: #ffffff; /* White text color for better contrast */
  font-weight: 600; /* Optional: make the text bold for better visibility */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4); /* Added subtle shadow to make the text stand out */
}

/* Stats Section inside the Header */
.stats {
  /* background: rgba(0, 0, 0, 0.3);  */
  color: white;
  padding: 40px 20px;
  width: 100%;
  /* position: absolute; */
  /* bottom: 0; */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  animation: fadeInUp 1.5s ease-in-out; /* Fade-in animation */
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Display 4 stats in a row */
  gap: 20px;
  text-align: center;
}

/* Individual Stat Style */
.stat {
  background-color: #1e88e5;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
  font-size: 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Stronger shadow on hover */
}

.stat strong {
  font-size: 2rem;
  font-weight: 700;
}


/* Animation for Stats */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Solutions Section */
.products {
  background-color: #f0f6ff;
  opacity: 0; /* Initially hide sections */
  transition: opacity 1s ease-in-out;
  min-height: 100vh;
  /* padding: 80px 0; */
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.products.visible {
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.contact.visible {
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.hidden {
  opacity: 0;
}

.products h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  color: #0d47a1; /* Blue color for the heading */
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for emphasis */
  margin-top: 50px; /* Added margin-top for extra spacing */
}

/* Product Cards Section */
.product-grid {
  display: flex; /* Using flexbox to display items in a single row */
  gap: 70px;
  flex-direction: column;
  justify-content: center; /* Centering the cards */
  align-items: stretch; /* Ensure all cards have equal height */
  padding: 0 20px;
  animation: fadeInUp 1.5s ease-in-out; /* Added animation */
  max-width: 100% !important; /* Limit the width of the product cards */
}

/* Individual Card Styles */
.card {
  background-color: #f9f9f9; /* Light background for the card */
  padding: 40px; /* Increased padding for bigger cards */
  border-radius: 15px; /* Increased border radius for rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* width: 350px; */
  /* height: 450px;  */
  flex: 1 1 30%; /* Ensures the cards occupy equal space but stay responsive */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-10px); /* Hover effect for the card */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 30%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.card h3 {
  font-size: 2.5rem; /* Increased font size for the heading */
  color: #1e88e5; /* Blue color for titles */
  /* height: 50px !important; */
  text-align: start;
}

.card p {
  font-size: 1.5rem; /* Increased font size for the description */
  color: #777;
  text-align: start;
  line-height: 3;
  flex-grow: 1; /* Ensures the description takes up remaining space */
}

/* Footer Section */
.contact {
  background: #0d47a1; /* Blue background for footer */
  color: #fff;
  /* padding: 40px 20px; */
  text-align: center;
  position: relative;
}

/* Footer Content in a Row */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

/* Individual Footer Items */
.footer-item {
  flex: 1;
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.footer-item p {
  font-size: 1rem;
  color: #e3f2fd; /* Light color for text */
  /* margin-bottom: 10px; */
}

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

.footer-item a:hover {
  color: #ffcc80; /* Accent color on hover */
}

.card-image-div {
  display: flex;
}

.key-features-div {
  margin-left: 5%;
}

.key-features-title {
  text-align: start;
}

.card-para {
  font-size: 1rem !important;
  color: #777;
  text-align: start;
}

.key-list {
  text-align: start;
  font-size: 1.5rem;
  line-height: 3;
}

@media (max-width: 1200px) {
  /* Large Desktop */
  .product-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
  }

  .header-text h1 {
    font-size: 3rem;
  }

  .stat {
    padding: 20px;
    font-size: 1.1rem;
  }
  .stat strong {
    font-size: 1.2rem;
  }

  .card {
    flex: 1 1 33.33%; /* 3 equal-width cards in a row */
  }

  .card p {
    line-height: 2 !important;
    margin-bottom: 15px;
  }

  .card-image-div {
    display: flex;
    flex-direction: column;
  }

  .card-image {
    width: 50%;
  }

  .key-list {
    font-size: 1.3rem;
  }
}

@media (max-width: 1024px) {
  /* Tablet (Landscape) */
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
  .header-text h1 {
    font-size: 2.5rem;
    /* margin-top: -50px; */
    margin-bottom: 10px;
  }
    .header-text h2 {
    font-size: 1rem;
  }

      .logo-img {
    height: 120px !important;
  }

  .header-text {
    margin-bottom: 0% !important;
  }

  .card {
    flex: 1 1 45%; /* Cards take 45% of width */
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
  .stat {
    padding: 20px;
    font-size: 1.1rem;
  }
  .stat strong {
    font-size: 1.2rem;
  }

  .footer-item {
    width: 100%;
    padding: 15px;
  }

  .card p {
    line-height: 2 !important;
    margin-bottom: 15px;
  }

  .card-image-div {
    display: flex;
    flex-direction: column;
  }

  .card-image {
    width: 50%;
  }

  .key-list {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  /* Tablet (Portrait) */
  .header-text h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    /* margin-top: -200px; */
  }

    .logo-img {
    height: 120px !important;
  }
  
  /* .hero .logo {
    left: -20px;
  } */

  .header-text h2 {
    font-size: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns for stats */
  }

  .stat {
    padding: 20px;
    font-size: 1rem;
  }

  .card {
    flex: 1 1 100%; /* Cards take full width on mobile */
  }

  .card h3 {
    font-size: 1.6rem;
  }

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

  .footer-item p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Mobile Devices (Portrait) */
  body {
    font-size: 14px;
  }

  .hero {
    justify-content: flex-start !important;
  }
  .hero .logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-text h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0px !important;
  }

  .header-text h2 {
    font-size: 0.7rem;
  }

  .logo-img {
    height: 150px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr; /* Single column for stats */
  }

  .stat {
    padding: 15px;
    font-size: 1rem;
  }

  .card {
    padding: 15px;
    flex: 1 1 100%; /* Full-width cards */
  }

  .card h3 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1rem;
    margin-bottom: 15px;
    margin-top: 10px;
  }

  .footer-item {
    width: 100%;
    padding: 10px 0;
  }

  .key-list {
    font-size: 0.8rem;
  }

  .card-image-div {
    display: flex;
    flex-wrap: wrap;
  }
  .footer-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
  }
  .card-image {
    width: 100%;
  }

  .footer-item p {
    font-size: 0.8rem;
  }

  .product-grid {
    padding: 0 10px !important;
  }
  .products h2 {
    font-size: 1.5rem;
  }

}

@media (max-width: 320px) {
  /* Smallest Mobile Devices */
  body {
    font-size: 12px;
  }

  .hero .logo {
    display: flex;
    align-items: center;
    justify-content: center;  }

  .hero {
    justify-content: flex-start !important;
  }

  .header-text h1 {
    font-size: 1.5rem; /* Reduce font size further */
    margin-bottom: 10px;
    margin-top: 0px !important;
  }

  .header-text h2 {
    font-size: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr; /* Single column */
  }

  .card h3 {
    font-size: 1.4rem;
  }

  .card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    margin-top: 10px;
  }
  .key-list {
    font-size: 0.8rem;
  }
  .card-image-div {
    display: flex;
    flex-wrap: wrap;
  }
  .footer-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
  }

  .card-image {
    width: 100%;
  }

  .footer-item p {
    font-size: 0.8rem;
  }

  .logo-img {
    height: 150px !important;
  }
  .product-grid {
    padding: 0 10px !important;
  }
  
  .products h2 {
    font-size: 1.5rem;
  }
}
