* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f7f7f7;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER + MEGA MENU */
header {
  background: #111;
  color: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav li {
  position: relative;
  cursor: pointer;
}

nav li:hover .mega-menu {
  display: flex;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  background: #fff;
  color: #000;
  padding: 20px;
  width: 400px;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mega-menu div {
  flex: 1;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, #0077ff, #0084ff);
  color: #fff;
  padding: 80px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero button {
  margin-top: 20px;
  padding: 12px 25px;
  border: none;
  background: #fff;
  color: #0767f7;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* CARDS */
.container {
  padding: 60px 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-8px);
}

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.product img {
  width: 100%;
  border-radius: 8px;
}

/* FORMS */
form {
  max-width: 500px;
  margin: auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

form h2 {
  margin-bottom: 15px;
}

input, textarea, button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  background: #0767f7;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #fff;
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.logo img {
  height: 40px;   /* logo size */
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 30px;
  }
}

/* ===== MOBILE RESPONSIVE CSS ===== */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {

  /* HEADER */
  header {
    padding: 10px 20px;
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .mega-menu {
    position: static;
    width: 100%;
    flex-direction: column;
    box-shadow: none;
  }

  /* HERO SECTION */
  .hero {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  /* CONTAINER */
  .container {
    padding: 40px 20px;
  }

  /* CARDS */
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .card {
    padding: 15px;
  }

  /* PRODUCTS */
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FORMS */
  form {
    width: 100%;
    padding: 20px;
  }

  input, textarea, button {
    font-size: 14px;
  }

  /* FOOTER */
  footer {
    font-size: 13px;
  }
}

@media (max-width: 480px) {

  /* HEADER */
  .logo img {
    height: 28px;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
  }

  /* HERO */
  .hero h1 {
    font-size: 22px;
  }

  .hero button {
    width: 100%;
  }

  /* CARDS */
  .cards {
    grid-template-columns: 1fr;
  }

  /* PRODUCTS */
  .products {
    grid-template-columns: 1fr;
  }

  /* BUTTONS */
  button, .download-btn {
    width: 100%;
  }
}

/* Support page download button fix */
.card button,
.download-btn {
  width: 150px;        /* same width */
  height: 40px;         /* same height */
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}

.download-btn {
  width: 150px;
  height: 40px;
  background: #0066ff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 10px;
  transition: 0.2s;
}

.download-btn:hover {
  background: #0084ff;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}

/* Support cards fix */
.cards {
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Force same size button everywhere */
.download-btn {
  width: 150px !important;
  max-width: 150px;
  min-width: 150px;
  height: 40px;
  margin: 10px auto 0 auto;  /* center button */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #6a00ff;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  white-space: nowrap;   /* text break nahi hoga */
}

/* Prevent button from stretching */
.card a {
  flex-shrink: 0;
}

.card p {
  min-height: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card:hover {
  transform: translateY(-5px);
}

/* Icon style */
.card i {
  font-size: 36px;
  color: #0767f7;  /* Purple theme */
}
