@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --text: #111;
  --muted: rgba(0, 0, 0, 0.65);
  --gray-bg: #f5f5f7;
  --card-bg: #ffffff;
  --border: #eaeaea;
  --btn-blue: #0071e3;
  --btn-blue-hover: #005bb5;
}

body.dark {
  --bg: #0b0b0f;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --gray-bg: #141418;
  --card-bg: #1b1b20;
  --border: rgba(255, 255, 255, 0.08);
  --btn-blue: #0a84ff;
  --btn-blue-hover: #0060df;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.4s ease;
}

body.dark .navbar {
  background: rgba(10, 10, 14, 0.75);
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Navbar links */
.nav-links a {
  text-decoration: none;
  color: var(--text);
  margin-left: 22px;
  font-weight: 500;
  opacity: 0.75;
  transition: 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

/* Theme button */
.theme-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  margin-left: 20px;
}

.theme-btn:hover {
  transform: scale(1.05);
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: auto;
  padding: 3.5rem 20px 2rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(90deg, #00c46b, #0071e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.primary {
  background: var(--btn-blue);
  color: white;
}

.primary:hover {
  background: var(--btn-blue-hover);
}

.secondary {
  background: var(--gray-bg);
  color: var(--text);
}

.secondary:hover {
  filter: brightness(0.95);
}

/* Hero Image */
.hero-image {
  margin-top: 2.5rem;
}

.hero-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0px 25px 60px rgba(0,0,0,0.18);
}

/* Sections */
.section {
  padding: 5rem 20px;
  text-align: center;
}

.content {
  max-width: 900px;
  margin: auto;
}

.section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.section p {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.subtext {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Gray background */
.gray {
  background: var(--gray-bg);
}

/* Cards */
.cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  padding: 2.2rem;
  border-radius: 22px;
  text-align: left;
  border: 1px solid var(--border);
  box-shadow: 0px 12px 30px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

/* Product Gallery */
.product-gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.product-gallery img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0px 15px 40px rgba(0,0,0,0.10);
  transition: 0.3s;
}

.product-gallery img:hover {
  transform: scale(1.02);
}

/* Features */
.features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  text-align: left;
  transition: 0.3s;
}

.feature:hover {
  transform: translateY(-6px);
}

/* Contact Form */
.form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.form input,
.form textarea {
  padding: 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 1rem;
  outline: none;
  background: var(--card-bg);
  color: var(--text);
  transition: 0.3s;
}

.form input:focus,
.form textarea:focus {
  border: 1px solid var(--btn-blue);
}

/* Contact note */
.contact-note {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media(max-width: 650px) {
  .hero-text h1 {
    font-size: 2.3rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .product-gallery img {
    height: 280px;
  }
}
