body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: #0f172a;
      color: #e5e7eb;
      line-height: 1.6;
    }

    /* Desktop Header */
    .desktop-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 40px;
      background: #020617;
    }
    .desktop-header strong {
      font-size: 1.5rem;
    }
    .desktop-header .contact-info span {
      margin-left: 20px;
      display: flex;
      align-items: center;
    }
    .desktop-header .contact-info svg {
      margin-right: 5px;
    }

    /* Desktop Nav */
    .desktop-nav {
      display: flex;
      justify-content: center;
      background: #020617;
      padding: 10px 0;
    }
    .desktop-nav a {
      margin: 0 15px;
      color: #e5e7eb;
      text-decoration: none;
      font-weight: 500;
    }

    /* Mobile Header/Menu (JS will create dynamically) */
    .mobile-header, .mobile-nav {
      display: none;
    }
    .mobile-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      background: #020617;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
    }
    .mobile-header strong {
      font-size: 1.5rem;
    }
    #mobile-menu-icon {
      font-size: 1.5rem;
      cursor: pointer;
    }
    .mobile-nav {
      display: none;
      position: fixed;
      top: 50px; /* height of mobile header */
      left: 0;
      right: 0;
      flex-direction: column;
      background: #020617;
      text-align: center;
      z-index: 999;
    }
    .mobile-nav a {
      display: block;
      padding: 10px 0;
      color: #e5e7eb;
      text-decoration: none;
      font-weight: 500;
    }

    /* Hero Section */
    .hero {
      padding: 120px 20px 60px 20px; /* extra top padding for mobile fixed header */
      text-align: center;
      background: linear-gradient(135deg, #020617, #0f172a);
    }
    .hero img {
      width: 70%;
      max-width: 800px;
      height: auto;
      display: block;
      margin: 0 auto 20px auto;
    }
    .hero p {
      font-size: 1.5rem;
      color: #fff;
      margin-top: 20px;
    }

    /* Sections */
    section {
      padding: 80px 20px;
      max-width: 1100px;
      margin: auto;
    }
    section h2 {
      font-size: 2rem;
      margin-bottom: 20px;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }
    .card {
      background: #020617;
      padding: 20px;
      border-radius: 10px;
    }

    footer {
      background: #020617;
      padding: 30px;
      text-align: center;
      opacity: 0.8;
    }
     @media (max-width: 768px) {
    .desktop-header,
    .desktop-nav {
      display: none;
    }

    /* Optional: adjust hero padding for mobile */
    .hero {
      padding-top: 60px; /* match height of mobile header */
    }
  }
    /* Increase paragraph font size for desktop */
  @media (min-width: 769px) {
    section p {
     font-size: 1.2rem; /* adjust as needed */
    }

  .hero p {
    font-size: 1.7rem; /* make hero text bigger too if needed */
  }
}

    /* Fix anchor alignment for mobile fixed header */
    @media (max-width: 768px) {
    section {
      scroll-margin-top: 70px; /* height of mobile header */
    }
  }
    html {
      scroll-behavior: smooth;
  }
  /* Make license PDF links white */
  #licenses a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
}

  #licenses a:hover {
  text-decoration: underline;
  }
  /* Make card text bigger */
  .card {
  font-size: 1.15rem;
  }

  /* Optional: even bigger on desktop */
  @media (min-width: 769px) {
    .card {
    font-size: 1.25rem;
    }
  }
  /* Desktop nav links bigger on desktop only */
  @media (min-width: 769px) {
    .desktop-nav a {
    font-size: 1.5rem; /* adjust as needed */
    }
  }
    .card {
  position: relative;
  padding: 20px;
  border-radius: 10px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* dark overlay */
  border-radius: 10px;
  z-index: 0;
}

.card h3, .card a {
  position: relative;
  z-index: 1;
}
.card {
  position: relative;
  padding: 20px;
  border-radius: 10px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* dark overlay for readability */
  border-radius: 10px;
  z-index: 0;
}

.card h3, .card a {
  position: relative;
  z-index: 1;
}
/* Make PDF links in Products cards white */
#products .card a {
  color: #e5e7eb; /* white text */
  text-decoration: none;
  font-weight: 500;
}

#products .card a:hover {
  text-decoration: underline;
}
/* Make product card title bigger */
#products .card h3 {
  font-size: 1.3rem;  /* adjust as needed */
  margin-bottom: 10px;
}
.card {
  position: relative;
  border-radius: 10px;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  overflow: hidden; /* 🔑 REQUIRED */
  display: flex;
  align-items: flex-end;
}

/* dark overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* TEXT BAR — FULL WIDTH, EDGE TO EDGE */
.card span {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;             
  padding: 16px 18px;
  box-sizing: border-box;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.3)
  );
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 600;
  border-radius: 0 0 10px 10px; /* match card */
}
#about {
  padding-bottom: 40px;
}

#services {
  padding-top: 5px;
}
    @media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid .card:nth-child(5) {
    grid-column: 2;
  }

  .services-grid .card:nth-child(6) {
    grid-column: 3;
  }
}
/* Desktop-only: larger text for About & Licenses */
@media (min-width: 1024px) {
  #about p,
  #licenses p {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 500;
  }
}
/* SERVICES GRID */
#services .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* FORCE EQUAL CARD HEIGHTS */
#services .card {
  height: 260px;              /* 👈 same height for all */
  display: flex;
  align-items: flex-end;
}

/* TEXT BAR — SAME HEIGHT EVERYWHERE */
#services .card span {
  min-height: 72px;           /* 👈 equal text area height */
  display: flex;
  align-items: center;
}
#services .card span {
  text-align: center;
  justify-content: center;
}
/* MOBILE STACKING FOR SERVICES */
@media (max-width: 1023px) {
  /* Make the grid auto-fit to single column */
  #services .grid {
    grid-template-columns: 1fr !important; /* single column */
  }

  /* Reset any custom positioning for 5th/6th cards */
  .services-grid .card:nth-child(5),
  .services-grid .card:nth-child(6) {
    grid-column: auto !important;
  }

  /* Optional: adjust card height on mobile if needed */
  #services .card {
    height: auto; /* let text define height */
  }

  #services .card span {
    min-height: auto; /* remove fixed height for text bar */
    padding: 12px 18px;
    font-size: 1.2rem;
  }
}
