/*  */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(120deg, #e0e7ef 0%, #f0f4f8 100%);
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #004080;
  text-decoration: underline;
}
header {
  position: sticky;
  top: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
  flex-wrap: wrap;
}
.logo {
  color: #004080;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo img {
  height: 60px;
  max-width: 100%;
  vertical-align: middle;
  margin-right: 12px;
  width: auto;
}
nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
nav a {
  color: #004080;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}
nav a:hover,
nav a.active {
  background-color: #f0f4f8;
  color: #003366;
  text-decoration: none;
}
.services-hero {
  background: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1500&q=80")
    center/cover no-repeat;
  color: #fff;
  padding: 4rem 1rem 3rem 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.services-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #004080cc 60%, #0073e6cc 100%);
  z-index: 1;
}
.services-hero > * {
  position: relative;
  z-index: 2;
}
.services-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.services-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.97;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.services-list {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.service-row {
  display: flex;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 64, 128, 0.1);
  overflow: hidden;
  align-items: stretch;
  transition: box-shadow 0.3s, transform 0.2s;
  min-height: 260px;
  position: relative;
}
.service-row:nth-child(even) {
  flex-direction: row-reverse;
}
.service-img-col {
  flex: 1.2;
  min-width: 220px;
  max-width: 380px;
  background: #e6eef7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  display: block;
}
.service-info-col {
  flex: 2;
  padding: 2.2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-title {
  color: #004080;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: 0.5px;
}
.service-desc {
  color: #333;
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
}
.service-list-ul {
  margin: 0 0 1.2rem 0;
  padding-left: 1.2rem;
  color: #004080;
  font-size: 1rem;
}
.service-list-ul li {
  margin-bottom: 0.4rem;
}
footer {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  color: #888;
  background: #f0f4f8;
  font-size: 1rem;
  border-top: 1px solid #e0e7ef;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }
  nav {
    margin-top: 0.5rem;
  }
  .logo img {
    height: 48px;
  }
  .services-hero {
    padding: 2.2rem 0.5rem 1.5rem 0.5rem;
  }
  .service-row,
  .service-row:nth-child(even) {
    flex-direction: column;
    min-height: 0;
  }
  .service-img-col img {
    min-height: 180px;
  }
  .service-info-col {
    padding: 1.2rem 1rem 1.2rem 1rem;
  }
}
@media (max-width: 600px) {
  .logo img {
    height: 36px;
  }
  nav {
    gap: 0.7rem;
  }
  .services-list {
    padding: 0 0.5rem;
  }
  .service-info-col {
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
}
@media (max-width: 400px) {
  .logo {
    font-size: 1rem;
  }
  .logo img {
    height: 28px;
    margin-right: 6px;
  }
  nav a {
    font-size: 0.9rem;
  }
  .service-info-col {
    font-size: 0.97rem;
  }
}
/* Footer with pattern and updated color */
footer {
  background-color: #f9fafb;
  color: #374151;
  padding: 4rem 1.5rem 3rem;
  font-size: 1rem;
  text-align: left;
  border-top: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    #e0e7ff 0,
    #e0e7ff 10px,
    #f9fafb 10px,
    #f9fafb 20px
  );
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
footer .footer-section {
  flex: 1 1 280px;
  min-width: 280px;
}
footer h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 0.75rem;
}
footer ul li a {
  color: #475569;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}
footer ul li a:hover,
footer ul li a:focus {
  color: #2563eb;
  text-decoration: underline;
  outline: none;
}
footer .contact-info p {
  margin: 0.5rem 0;
  color: #475569;
  line-height: 1.5;
  font-size: 1rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .footer-section {
    min-width: 100%;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #004080cc, #0073e6cc),
    url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80")
      center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 8rem 1rem 6rem;
}
.hero h1 {
  font-size: 3.75rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}
.hero p {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.btn-primary {
  background-color: #000000;
  color: white;
  font-weight: 700;
  padding: 1rem 3rem;
  border: none;
  border-radius: 12px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #222222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
/* Main container */
.container {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgb(0 0 0 / 0.07);
}
/* About section */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 0.5rem;
}
.about-text {
  flex: 1 1 480px;
  font-size: 1.35rem;
  color: #6b7280;
  min-width: 260px;
  line-height: 1.7;
}
.about-image {
  flex: 1 1 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgb(0 64 128 / 0.2);
  min-width: 280px;
  max-width: 100%;
  transition: transform 0.3s ease;
}
.about-image img {
  width: 100%;
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 16px;
  display: block;
}
.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgb(0 64 128 / 0.35);
}
/* Services Section */
.services {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  color: #6b7280; /* Neutral gray for body text */
  text-align: center;
}
.services h2 {
  font-weight: 800;
  font-size: 3.5rem;
  color: #111827;
  margin-bottom: 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 2.5rem 2rem 3rem;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
  color: #374151;
  min-height: 380px;
  align-items: flex-start;
  text-align: left;
}
.service-card:hover {
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.15);
  transform: translateY(-8px);
}
/* Icon styles */
.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  stroke: #004080;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.service-title {
  font-weight: 700;
  font-size: 1.9rem;
  color: #004080;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.service-description {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #6b7280;
  flex-grow: 1;
  max-width: 100%;
}
/* Footer with pattern and updated color */
footer {
  background-color: #f9fafb;
  color: #374151;
  padding: 4rem 1.5rem 3rem;
  font-size: 1rem;
  text-align: left;
  border-top: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    #e0e7ff 0,
    #e0e7ff 10px,
    #f9fafb 10px,
    #f9fafb 20px
  );
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
footer .footer-section {
  flex: 1 1 280px;
  min-width: 280px;
}
footer h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 0.75rem;
}
footer ul li a {
  color: #475569;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}
footer ul li a:hover,
footer ul li a:focus {
  color: #2563eb;
  text-decoration: underline;
  outline: none;
}
footer .contact-info p {
  margin: 0.5rem 0;
  color: #475569;
  line-height: 1.5;
  font-size: 1rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .footer-section {
    min-width: 100%;
  }
}
main,
.max-w-7xl {
  padding-bottom: 1rem !important; /* add or reduce to 1rem */
}

/* Responsive */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .about {
    flex-direction: column;
  }
  .about-text,
  .about-image {
    flex: 1 1 100%;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }
  nav {
    margin-top: 0.5rem;
  }
  .logo img {
    height: 90px;
    margin-right: 12px;
  }
  .service-card {
    min-height: auto;
    align-items: center;
    text-align: center;
  }
  .service-description {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 4rem 0.5rem 3rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .about-text,
  .about-image {
    min-width: 0;
  }
  .logo img {
    height: 60px;
    margin-right: 10px;
  }
  nav {
    gap: 0.7rem;
  }
  .container {
    padding: 0 0.5rem;
  }
  .service-card h3 {
    font-size: 1.5rem;
  }
  .service-card p {
    font-size: 1.1rem;
  }
  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }
  .service-title {
    font-size: 1.6rem;
  }
}
@media (max-width: 400px) {
  .logo {
    font-size: 1rem;
  }
  .logo img {
    height: 48px;
    margin-right: 8px;
  }
  nav a {
    font-size: 0.9rem;
  }
}

/* New CSS */
/* Product Card Styles */
.product-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s;
    border-radius: 12px; /* Match header border radius */
    box-shadow: 0 4px 18px rgba(0, 64, 128, 0.1); /* Match header shadow */
}

.product-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.product-card:hover .product-inner {
    transform: rotateY(180deg);
}

.product-front, .product-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    padding: 1.5rem;
    border-radius: 12px; /* Match header border radius */
}

.product-back {
    transform: rotateY(180deg);
    background: #ffffff; /* Match header background */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Blue gradient background for all front cards */
.blue-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}


/* Product Card Styles */
.product-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s;
    border-radius: 12px; /* Match header border radius */
    box-shadow: 0 4px 18px rgba(0, 64, 128, 0.1); /* Match header shadow */
}

.product-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.product-card:hover .product-inner {
    transform: rotateY(180deg);
}

.product-front {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    padding: 1.5rem;
    border-radius: 12px; /* Match header border radius */
    background-color: #ffffff; /* White background for the front */
}

.product-back {
    transform: rotateY(180deg);
    background-color: #ffffff; /* White background for the back */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Image styling */
.product-image {
    height: 150px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-top: auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    background: rgba(29, 78, 216, 0.1);
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-align: center;
    color: #1d4ed8; /* Match header link color */
    font-weight: 500;
}

/* Icon container styling */
.icon-container {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Button styling */
.learn-more-btn {
    background: white; /* Match header link color */
    color: #1d4ed8; /* Change text color to match the theme */
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 1rem;
    border: none; /* Remove default button border */
}

.learn-more-btn:hover {
    background: #1e40af; /* Darker shade for hover effect */
    color: white; /* Change text color on hover */
    transform: translateY(-2px);
}

/* Products Intro and CTA styles */
.products-intro {
  margin-bottom: 2.5rem;
}

.products-cta {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.products-cta h2 {
  color: #1a237e;
}

.products-cta a {
  text-decoration: none;
}
