* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --primary: #0f766e;
  --secondary: #14b8a6;
  --dark: #0f172a;
  --light: #f8fafc;
  --text: #334155;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 35%, #ffffff 100%);
  color: var(--text);
  line-height: 1.6;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 118, 110, 0.95);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 7%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo span {
  color: #ccfbf1;
}

.navbar nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.navbar nav a:hover {
  color: #ccfbf1;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 40px;
  padding: 70px 7%;
}

.hero-text h1 {
  font-size: 3.1rem;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  max-width: 620px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: #ccfbf1;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: bold;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  display: block;
}

.float-card {
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.full {
  width: 100%;
}

.section {
  padding: 70px 7%;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--dark);
}

.stats,
.feature-grid,
.product-grid,
.dashboard-grid,
.orders {
  display: grid;
  gap: 24px;
}

.stats {
  padding: 0 7% 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-box,
.card,
.panel,
.login-box,
.order-card,
.product-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

.stat-box {
  text-align: center;
  padding: 28px 18px;
}

.stat-box h2 {
  font-size: 2rem;
  color: var(--primary);
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.panel,
.login-box {
  padding: 24px;
}

.card img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 18px;
}

.card h3,
.panel h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card:hover,
.panel:hover,
.product-card:hover {
  transform: translateY(-6px);
  transition: 0.25s ease;
}

.toolbar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.toolbar input,
.toolbar select,
.panel input,
.login-box input {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  width: 100%;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #ecfeff;
}

.product-content {
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.badge {
  display: inline-block;
  background: #ccfbf1;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: bold;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#productForm,
#loginForm {
  display: grid;
  gap: 12px;
}

.inventory-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.inventory-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  justify-content: space-between;
}

.orders {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.order-card {
  text-align: center;
  padding: 20px 12px;
}

.order-card h4 {
  margin-bottom: 6px;
}

.order-card p {
  font-size: 1.6rem;
  font-weight: bold;
}

.pending {
  border-top: 5px solid #f59e0b;
}

.packed {
  border-top: 5px solid #3b82f6;
}

.delivered {
  border-top: 5px solid #22c55e;
}

.login-box {
  max-width: 420px;
  margin: auto;
}

#loginMessage {
  margin-top: 12px;
  text-align: center;
  font-weight: bold;
  color: var(--primary);
}

footer {
  background: var(--dark);
  color: #cbd5e1;
  text-align: center;
  padding: 28px 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }

  .orders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
  }

  .hero-text h1,
  .section-title h2 {
    font-size: 2rem;
  }
}
