:root {
  --bg-dark: #19426c;
  --bg-accent: #043f7e;
  --bg-light: #0c5ab5;
  --text-light: #f4f7ff;
  --text-muted: rgba(244, 247, 255, 0.8);
  --card-bg: rgba(3, 31, 61, 0.6);
  --card-border: rgba(255, 255, 255, 0.12);
  --primary: #6fffe9;
  --secondary: #ffd166;
}

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

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-image: linear-gradient(
      rgba(36, 79, 124, 0.92),
      rgba(3, 31, 61, 0.92)
    ),
    url('../images/backroundimg.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
  padding: 0 1.5rem;
  scroll-behavior: smooth;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.top-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2em;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--text-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);
  color: #01223c;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 2rem;
  padding: 3rem 0 4rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.hero-text .subtitle {
  font-size: 1.25rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.hero-text .tagline {
  margin-top: 0.75rem;
  font-weight: 500;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: min(320px, 80%);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.highlights {
  padding: 3rem 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  font-weight: 500;
}

.ingredients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.info-block {
  background: rgba(4, 63, 126, 0.6);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--card-border);
}

.info-block h3 {
  margin-bottom: 1rem;
}

.info-block ul {
  list-style: none;
}

.info-block li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-block li:last-child {
  border-bottom: none;
}

.product-overview,
.product-specs,
.full-ingredients,
.claims,
.packaging,
.notices,
.marketing-text {
  padding: 3rem 0;
}

.overview-grid,
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-panel,
.spec-card {
  background: rgba(4, 63, 126, 0.6);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--card-border);
}

.description-panel p + p {
  margin-top: 0.75rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list span {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1 1 50%;
}

.info-list strong {
  font-size: 1rem;
  flex: 1 1 50%;
  text-align: right;
}

.spec-card h3 {
  margin-bottom: 1rem;
}

.caffeine-card {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-accent));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.caffeine-card p {
  color: var(--text-light);
}

.caffeine-value {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill-list li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(4, 63, 126, 0.5);
  font-size: 0.95rem;
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.4;
}

.checklist li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.badge-list span {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(3, 31, 61, 0.5);
  border: 1px solid var(--card-border);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.notices .info-panel {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 600px) {
  .info-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .info-list strong {
    text-align: left;
  }
}

.brochure {
  padding: 3rem 0;
}

.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn.primary {
  background: var(--primary);
  color: #01223c;
  box-shadow: 0 10px 25px rgba(111, 255, 233, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.contact {
  padding: 3rem 0 4rem;
}

.contact-helper {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 0.75rem;
}

.icon {
  font-size: 1.5rem;
}

.contact-form {
  background: rgba(3, 31, 61, 0.75);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--card-border);
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

input,
textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: none;
  font: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea {
  resize: vertical;
}

.form-response {
  min-height: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* RTL adjustments */
body[dir='rtl'] {
  text-align: right;
}

body[dir='rtl'] .top-nav {
  flex-direction: row-reverse;
}

body[dir='rtl'] .lang-switcher {
  flex-direction: row-reverse;
}

body[dir='rtl'] .detail {
  direction: rtl;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  body {
    padding: 0 1rem;
  }

  .top-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
