:root {
  --primary: #1e40af;
  --accent: #10b981;
  --gray: #4b5563;
  --light: #f9fafb;
  --dark: #111827;
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height:1.6;
  color:var(--dark);
  background:var(--light);
}

.container {
  max-width:1200px;
  margin:0 auto;
  padding:0 1.5rem;
}

header {
  background:white;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  position:sticky;
  top:0;
  z-index:100;
}

nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1.25rem 0;
}

.logo {
  font-size:1.5rem;
  font-weight:700;
  color:var(--primary);
}

.nav-links a {
  margin-left:1.5rem;
  text-decoration:none;
  color:var(--gray);
  font-weight:500;
}

.nav-links a:hover { color:var(--primary); }

.hero {
  background: linear-gradient(rgba(30,64,175,0.85), rgba(30,64,175,0.75)),
              url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80') center/cover no-repeat;
  color:white;
  text-align:center;
  padding:8rem 2rem 6rem;
}

.hero h1 {
  font-size:3rem;
  margin-bottom:1rem;
}

.btn {
  display:inline-block;
  background:var(--accent);
  color:white;
  padding:0.9rem 2rem;
  border-radius:50px;
  text-decoration:none;
  font-weight:600;
  margin:0.5rem;
  transition:all 0.3s;
}

.btn:hover {
  transform:translateY(-3px);
  box-shadow:0 6px 20px rgba(16,185,129,0.4);
}

.features {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:2rem;
  margin:3rem 0;
}

.card {
  background:white;
  padding:2rem;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  text-align:center;
}

.card h3 {
  color:var(--primary);
  margin-bottom:1rem;
}

.cta-section {
  background:var(--primary);
  color:white;
  text-align:center;
  padding:6rem 2rem;
}

footer {
  background:var(--dark);
  color:#9ca3af;
  text-align:center;
  padding:3rem 0;
}
/* === Hamburger Icon === */
.hamburger {
  display: none; /* Hidden on large screens */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  background: var(--primary); /* or #000 for black lines */
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle {
  display: none; /* Hidden checkbox */
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Show hamburger on mobile */
  }

  .nav-links {
    display: none; /* Hide horizontal links */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    text-align: center;
  }

  .nav-links a {
    margin: 1rem 0;
    font-size: 1.2rem;
    display: block;
  }

  /* Show menu when checkbox checked */
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Animate hamburger to X when open */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
/* ========================================= */
/* Aggressive Mobile Size Reduction          */
/* (aiming for ~half the visual size)        */
/* ========================================= */

@media (max-width: 768px) {
  body {
    font-size: 14px; /* smaller base font */
  }

  .container {
    padding: 0 0.8rem; /* very tight sides */
  }

  /* Hero - dramatically smaller */
  .hero {
    padding: 3rem 1rem 2.5rem !important;
    min-height: auto !important;
  }

  .hero h1 {
    font-size: 1.8rem !important;
    margin-bottom: 0.8rem !important;
  }

  .hero p {
    font-size: 0.95rem !important;
    margin-bottom: 1.2rem !important;
  }

  /* Buttons - much smaller */
  .btn {
    padding: 0.6rem 1.4rem !important;
    font-size: 0.9rem !important;
    border-radius: 30px !important;
    margin: 0.4rem !important;
  }

  /* Cards - compact */
  .features,
  .products-grid {
    gap: 1rem !important;
  }

  .card {
    padding: 1.2rem !important;
  }

  .card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.6rem !important;
  }

  .card p {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
  }

  /* Section spacing - half */
  section {
    padding: 2.5rem 0 !important;
  }

  h2 {
    font-size: 1.6rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* CTA section */
  .cta-section {
    padding: 3rem 1rem !important;
  }

  .cta-section h2 {
    font-size: 1.5rem !important;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem 1.5rem !important;
    font-size: 0.85rem !important;
  }

  /* Navigation / hamburger */
  .logo {
    font-size: 1.3rem !important;
  }

  .hamburger {
    width: 26px !important;
    height: 18px !important;
  }

  .hamburger span {
    height: 2.5px !important;
  }

  .nav-links a {
    font-size: 1.05rem !important;
    padding: 0.8rem 0 !important;
  }

  /* Extra small phones */
  @media (max-width: 480px) {
    .hero h1 {
      font-size: 1.6rem !important;
    }
    .hero p {
      font-size: 0.9rem !important;
    }
    .btn {
      padding: 0.5rem 1.2rem !important;
      font-size: 0.85rem !important;
    }
    .card {
      padding: 1rem !important;
    }
  }
}
/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  color: var(--gray);
  font-weight: 500;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 2rem;
  font-size: inherit;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: var(--dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  margin: 0;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
  color: var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: var(--primary);
}

/* Mobile adjustments for dropdown */
@media (max-width: 768px) {
  .dropdown {
    width: 100%;
  }

  .dropbtn {
    margin-left: 0;
    padding: 1rem 0;
    display: block;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    border-radius: 0;
  }

  .dropdown-content a {
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
  }

  /* Show dropdown content when parent is open (via checkbox hack) */
  .dropdown .dropdown-content {
    display: none;
  }

  /* Optional: show subitems when tapping Products in mobile menu */
  #menu-toggle:checked ~ .nav-links .dropdown .dropdown-content {
    display: block;
  }
}
