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

:root {
  --ink: #f7f8f9;
  --accent: #f2c22d;
  --accent-strong: #ffd95b;
  --border: rgba(255, 255, 255, 0.2);
  --card-bg: rgba(7, 8, 10, 0.66);
  --card-line: rgba(255, 255, 255, 0.24);
  --header-height: 102px;
  --products-height: clamp(250px, 34vh, 350px);
  --stats-height: clamp(38px, 7vh, 56px);
  --shadow: 0 14px 26px rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0d1411;
  overflow-x: hidden;
  overflow-y: auto;
  caret-color: transparent;
}

input,
textarea,
select,
[contenteditable="true"] {
  caret-color: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("bg-for-dhan.png") center / cover no-repeat;
  mix-blend-mode: lighten;
  background-blend-mode: lighten;
}


img {
  display: block;
  max-width: 100%;
}

.page {
  height: auto;
  min-height: 100vh;
  padding: 0 clamp(10px, 1.4vw, 24px) 16px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: clamp(8px, 1.2vh, 14px);
  overflow: visible;
}

.header {
  position: relative;
  z-index: 40;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 clamp(10px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 20px);
  border-bottom: 1px solid var(--border);
  background: rgba(4, 6, 7, 0.5);
  backdrop-filter: blur(4px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  height: clamp(120px, 10.2vh, 300px);
  width: auto;
}

.pagetitle {
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  font-size: clamp(1.72rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  white-space: nowrap;
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav > a,
.nav .dropdown > a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.nav > a::after,
.nav .dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav > a:hover::after,
.nav .dropdown > a:hover::after,
.nav > a:focus-visible::after,
.nav .dropdown > a:focus-visible::after {
  transform: scaleX(1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 188px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5, 6, 8, 0.93);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: rgba(242, 194, 45, 0.2);
}

.hero {
  min-height: 0;
  min-height: clamp(320px, 52vh, 560px);
  height: auto;
  border-radius: clamp(16px, 1.8vw, 24px);
  border: 1px solid var(--card-line);
  overflow: visible;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: clamp(12px, 2.1vh, 26px) clamp(14px, 2vw, 30px);
  background: rgba(5, 8, 12, 0.9);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(102deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 34%, rgba(0, 0, 0, 0.48) 56%, rgba(0, 0, 0, 0.14) 76%, rgba(0, 0, 0, 0.32) 100%),
    url("../images/bgforfarming.png") center / cover no-repeat;

}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
  radial-gradient(560px 300px at 12% 10%, rgba(255, 173, 18, 0.2), transparent 66%),
    radial-gradient(420px 260px at 86% 26%, rgba(255, 255, 255, 0.09), transparent 70%);
}

.hero-content {
  width: min(760px, 68%);
  padding: 0;
  z-index: 2;
}

.hero-content h1 {
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: clamp(1.9rem, 3.8vw, 4.1rem);
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
  display: block;
}

.hero-content h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-subtitle {
  margin-top: clamp(8px, 1.1vw, 14px);
  max-width: 45ch;
  font-size: clamp(0.95rem, 1.24vw, 1.4rem);
  line-height: 1.42;
  color: rgba(247, 248, 249, 0.9);
}

.hero-cta {
  margin-top: clamp(12px, 1.45vw, 18px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #131313;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 12px 20px rgba(242, 194, 45, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(242, 194, 45, 0.42);
}

.cta-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  font-size: 10px;
}

.products h2 {
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(10px, 1.3vw, 18px);
}

.products.is-focus .product-grid {
  box-shadow:
    0 0 0 2px rgba(242, 194, 45, 0.65),
    0 0 24px rgba(242, 194, 45, 0.26);
  border-radius: 16px;
}

.products {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: visible;
}

.product-grid {
  min-height: 0;
  height: auto;
  width: 100%;
  margin-inline: auto;
  padding: 6px 10px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 220px));
  justify-content: center;
  justify-items: center;
  align-content: start;
  gap: clamp(12px, 1.25vw, 18px);
}

.product-card {
  position: relative;
  width: clamp(170px, 15vw, 220px);
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transform-origin: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(242, 194, 45, 0.9);
  box-shadow: 0 0 0 3px rgba(242, 194, 45, 0.22), var(--shadow);
}

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #d6d6d6;
}

.product-copy {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 8%;
  padding: clamp(8px, 0.82vw, 12px) clamp(8px, 0.82vw, 12px);
  border-radius: 999px;
  background: rgba(6, 8, 10, 0.78);
  text-align: center;
  backdrop-filter: blur(2px);
}

.product-copy h3 {
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  font-size: clamp(0.86rem, 0.95vw, 1.08rem);
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
  display: block;
  max-height: calc(1.08em * 2);
  overflow: hidden;
}

.product-copy p {
  margin-top: 2px;
  font-size: clamp(0.62rem, 0.66vw, 0.76rem);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(247, 248, 249, 0.86);
}

.stats {
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.stats p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(0.98rem, 1.2vw, 1.34rem);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(242, 194, 45, 0.78);
}

@media (max-width: 1080px) {
  :root {
    --header-height: 86px;
    --products-height: clamp(250px, 38vh, 330px);
    --stats-height: clamp(34px, 6.8vh, 48px);
  }

  .hero {
    padding: 14px 16px;
  }

  .hero-content {
    width: min(100%, 740px);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 88px;
    --products-height: auto;
    --stats-height: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .page {
    gap: 14px;
  }

  .header {
    height: auto;
    min-height: var(--header-height);
    padding: 10px 14px;
    gap: 12px;
    overflow: visible;
  }

  .logo img {
    height: 54px;
  }

  .pagetitle {
    font-size: 1.6rem;
  }

  .logo {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 14px;
    right: 14px;
    width: auto;
    gap: 8px;
    display: grid;
    padding: 16px;
    background: rgba(5, 6, 8, 0.95);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav > a,
  .nav .dropdown > a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav > a::after,
  .nav .dropdown > a::after {
    display: none;
  }

  .dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropdown.is-open .dropdown-menu {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: auto;
    padding: 14px 16px;
  }

  .hero-content {
    width: min(100%, 720px);
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(150px, 190px));
    gap: 16px;
  }

  .stats {
    gap: 12px 16px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 80px;
    --products-height: auto;
    --stats-height: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    overflow: visible;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .header {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    justify-content: flex-start;
    overflow: visible;
  }

  .logo img {
    height: 48px;
  }

  .pagetitle {
    font-size: 1.45rem;
  }

  .logo {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 12px;
    right: 12px;
    width: auto;
    gap: 8px;
    display: grid;
    padding: 16px;
    background: rgba(5, 6, 8, 0.95);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav > a,
  .nav .dropdown > a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav > a::after,
  .nav .dropdown > a::after {
    display: none;
  }

  .dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: auto;
    padding: 12px;
  }

  .hero-content {
    width: 100%;
    padding: 0;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-cta {
    font-size: 0.86rem;
    padding: 9px 14px;
  }

  .products h2 {
    font-size: 1.46rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(130px, 170px));
    justify-content: center;
    align-content: start;
    gap: 12px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .product-card {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropdown.is-open .dropdown-menu {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 240px;
  }
}

/* Desktop-style mobile layout */
@media (max-width: 900px) {
  :root {
    --header-height: clamp(74px, 14vw, 96px);
    --products-height: clamp(230px, 34vh, 340px);
    --stats-height: clamp(36px, 7vh, 54px);
  }

  body.nav-open {
    overflow-y: auto;
  }

  .page {
    min-height: 100vh;
    grid-template-rows: auto auto auto auto;
  }

  .header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 clamp(12px, 4vw, 26px);
    flex-wrap: nowrap;
    overflow: visible;
  }

  .logo img {
    height: clamp(58px, 11vw, 86px);
  }

  .pagetitle {
    font-size: clamp(1rem, 3vw, 1.9rem);
  }

  .nav-toggle {
    display: none !important;
  }

  .nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.4vw, 22px);
    width: auto;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    overflow: visible;
    white-space: nowrap;
  }

  .nav > a,
  .nav .dropdown > a {
    width: auto;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: clamp(0.72rem, 1.8vw, 0.9rem);
  }

  .nav > a::after,
  .nav .dropdown > a::after {
    display: block;
  }

  .dropdown {
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .dropdown-menu {
    position: absolute;
    min-width: 210px;
    margin-top: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(5, 6, 8, 0.95);
    box-shadow: var(--shadow);
    max-height: none;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  .dropdown.is-open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: clamp(300px, 50vh, 540px);
  }

  .hero-content {
    width: min(760px, 68%);
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(124px, 190px));
    gap: clamp(10px, 1.2vw, 16px);
    padding-bottom: 10px;
  }

  .product-card {
    width: clamp(124px, 15vw, 190px);
  }

  .stats {
    flex-wrap: nowrap;
  }

  .stats p {
    white-space: nowrap;
    font-size: clamp(0.62rem, 1.8vw, 0.9rem);
  }
}
