@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: hsl(152, 69%, 31%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(152, 60%, 45%);
  --primary-glow: hsl(152, 69%, 60%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(210, 24%, 16%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(210, 17%, 90%);
  --muted-foreground: hsl(210, 16%, 46%);
  --accent: hsl(152, 50%, 88%);
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--foreground);
  transition: opacity 0.3s;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px -10px rgba(18, 121, 83, 0.15);
}

.brand-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--accent);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--primary-foreground);
  box-shadow: 0 10px 40px -10px rgba(18, 121, 83, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(18, 121, 83, 0.2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-foreground);
  color: var(--primary-foreground);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 121, 83, 0.95), rgba(18, 121, 83, 0.85));
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 3rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section */
.section {
  padding: 6rem 0;
}

.section-gradient {
  background: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(152, 50%, 98%));
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.section-divider {
  width: 96px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto;
  border-radius: 2px;
}

/* Card */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 40px -10px rgba(18, 121, 83, 0.15);
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: 0 0 50px rgba(18, 121, 83, 0.2);
  transform: translateY(-5px);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px -10px rgba(18, 121, 83, 0.15);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.card p {
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Specifications cards: force two cards per row on wider screens, fallback to one column on small screens */
.specs-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Image */
.image-wrapper {
  position: relative;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0.2;
  border-radius: 24px;
  filter: blur(40px);
}

.image-wrapper img {
  position: relative;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 10px 40px -10px rgba(18, 121, 83, 0.15);
  transition: all 0.3s;
}

.image-wrapper img:hover {
  box-shadow: 0 0 50px rgba(18, 121, 83, 0.2);
}

/* Product Features */
.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* Specs Table */
.specs-table {
  width: 100%;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-label {
  font-weight: 600;
  font-size: 1.125rem;
}

.specs-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-menu {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .section {
    padding: 3rem 0;
  }
}
