﻿/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --primary: #94C12E; /* Bright leaf green from text */
  --primary-hover: #79A322;
  --primary-light: rgba(148, 193, 46, 0.1);
  --secondary: #5E9833; /* Darker green from the book */
  --bg-color: #FAFCF8; /* Soft warm background */
  --text-main: #34422B;
  --text-muted: #6B7B61;
  --white: #FFFFFF;
  --shadow-sm: 0 8px 24px rgba(148, 193, 46, 0.08);
  --shadow-md: 0 16px 40px rgba(148, 193, 46, 0.12);
  --radius: 24px;
  --radius-sm: 12px;
  --radius-pill: 100px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body[dir="ltr"] {
  --font-main: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Navbar (Glassmorphism & New Design) */
.navbar {
  background: rgba(255, 255, 255, 0.85); /* Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 2px solid rgba(148, 193, 46, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-img {
  height: 60px; /* Big & clear */
  border-radius: 50%;
  animation: float-logo 4s ease-in-out infinite;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.nav-logo-img:hover {
  transform: scale(1.1);
}

@keyframes float-logo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(148, 193, 46, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-toggle:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  background-color: var(--white);
  overflow: hidden;
  min-height: 85vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(108,194,161,0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(243,181,98,0.12) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero-subtitle-box {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(108,194,161,0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.hero-subtitle-box:hover {
  transform: translateY(-3px);
}

.hero-subtitle-box h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  /* Fallback if logo is missing */
}

.hero-mascot-img {
  width: 100%;
  max-width: 480px;
  animation: mascot-magic 8s ease-in-out infinite;
  border-radius: 0 !important;
  box-shadow: none !important;
  mix-blend-mode: multiply; /* Removes white bg */
}

@keyframes mascot-magic {
  0% { transform: translateY(0px) scale(1) rotate(0deg); }
  25% { transform: translateY(-12px) scale(1.02) rotate(1deg); }
  50% { transform: translateY(-18px) scale(1) rotate(0deg); }
  75% { transform: translateY(-12px) scale(1.02) rotate(-1deg); }
  100% { transform: translateY(0px) scale(1) rotate(0deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Needs Icons */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.need-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(148, 193, 46, 0.05);
}

.need-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.need-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  background: var(--primary-light);
  width: 90px;
  height: 90px;
  display: inline-flex;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.need-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: var(--bg-color); /* Matches the background well */
  padding: 1rem; /* Gives it some breathing room inside the contain bounds */
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-hook {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

/* Bundle Section */
.bundle-section {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  box-shadow: var(--shadow-sm);
  margin: 4rem auto;
  border: 1px solid rgba(148, 193, 46, 0.1);
}

.bundle-image-stack {
  position: relative;
  flex: 1;
  height: 350px;
}

.bundle-image-stack img {
  position: absolute;
  width: 220px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.bundle-image-stack:hover img:nth-child(1) {
  transform: rotate(-8deg) translateX(-15px);
}
.bundle-image-stack:hover img:nth-child(2) {
  transform: rotate(15deg) translateX(15px);
}

.bundle-image-stack img:nth-child(1) {
  top: 0;
  left: 20%;
  z-index: 2;
  transform: rotate(-5deg);
}

.bundle-image-stack img:nth-child(2) {
  top: 30px;
  left: 40%;
  z-index: 1;
  transform: rotate(10deg);
}

.bundle-content {
  flex: 1;
}

.bundle-badge {
  background: var(--secondary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
}

/* About Section */
.about-founder {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.founder-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  animation: pulse-border 2.5s infinite;
  box-shadow: 0 0 0 0 rgba(108, 194, 161, 0.7);
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 194, 161, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(108, 194, 161, 0);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 194, 161, 0);
    transform: scale(1);
  }
}

/* Single Product */
.product-detail-wrapper {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.product-gallery {
  flex: 1;
}

.main-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.thumbnails {
  display: flex;
  gap: 1rem;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  object-fit: cover;
  border: 2px solid transparent;
}

.thumbnails img.active {
  border-color: var(--primary);
}

.product-info-detail {
  flex: 1;
}

.product-info-detail h1 {
  font-size: 2.5rem;
}

.details-hook {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: bold;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.benefits-list li i {
  color: var(--primary);
}

.tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  background: var(--bg-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--white);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid #EAEAEA;
  margin-top: 4rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-content h1.animated-title {
    font-size: 2.5rem;
  }
  
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero > .container > div {
    display: block !important;
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-logo-img {
    height: 45px;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 5%;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
    gap: 1rem;
    border: 1px solid rgba(148, 193, 46, 0.2);
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .bundle-section, .about-founder, .product-detail-wrapper, .contact-wrapper, .checkout-layout {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .bundle-image-stack {
    height: 250px;
    width: 100%;
  }
  
  .products-grid, .needs-grid, .features-grid {
    grid-template-columns: 1fr;
  }
}


/* Product Selection Feedback */
.product-card:active {
  transform: scale(0.96);
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(148, 193, 46, 0.4);
}

/* Advanced Animated Text */
.animated-title {
  display: inline-block;
  font-family: inherit;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
}

.animated-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  animation: growTree 0.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animated-title span:nth-child(1) { animation-delay: 0.1s; }
.animated-title span:nth-child(2) { animation-delay: 0.3s; }
.animated-title span:nth-child(3) { animation-delay: 0.5s; }
.animated-title span:nth-child(4) { animation-delay: 0.7s; }
.animated-title span:nth-child(5) { animation-delay: 0.9s; }

@keyframes growTree {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stem-leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 100% 0 100%;
  opacity: 0;
  transform: scale(0);
  animation: sproutLeaf 0.6s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.leaf1 { top: -30px; left: -10px; animation-delay: 1.2s; }
.leaf2 { top: 45px; left: -10px; animation-delay: 1.4s; transform-origin: top left; border-radius: 100% 0 100% 0; }
.leaf3 { top: -30px; right: -5px; animation-delay: 1.6s; }

@keyframes sproutLeaf {
  to {
    opacity: 1;
    transform: scale(1) rotate(15deg);
  }
}

.hero-mascot-img {
  width: 100%;
  max-width: 450px;
  animation: growHeroLogo 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  will-change: transform, clip-path, opacity;
  transform-origin: bottom center;
}

@keyframes growHeroLogo {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: scale(0.8) translateY(50px);
    opacity: 0;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Testimonials & Social Links */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid rgba(255,255,255,1);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.quote-icon {
  font-size: 3rem;
  color: rgba(148, 193, 46, 0.2);
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #eaeaea;
  padding-top: 1rem;
}

.testimonial-author .avatar {
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.testimonial-author h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-icon {
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--primary);
  transform: translateY(-3px) scale(1.1);
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

/* Enhanced Navbar Design */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(148, 193, 46, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.nav-links li a {
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s;
}
.nav-links li a:hover, .nav-links li a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.nav-highlight {
  background: var(--primary);
  color: white !important;
  border-radius: 30px !important;
  padding: 0.6rem 1.2rem !important;
  box-shadow: 0 4px 10px rgba(148, 193, 46, 0.3);
}
.nav-highlight:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Marquee Slider */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-rtl 40s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.testimonial-card {
  width: 350px;
  flex-shrink: 0;
}

@keyframes scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); } 
}


@media (max-width: 768px) {
  /* Fix Navbar Layout */
  .navbar .container {
    justify-content: flex-start;
  }
  .logo {
    order: 1;
  }
  .mobile-menu-btn {
    order: 2;
    margin-right: 1rem;
  }
  .nav-actions {
    order: 3;
    margin-right: auto;
  }
  
  /* Fix Typography sizes for Mobile */
  .hero-content h1.animated-title {
    font-size: 3rem !important;
  }
  .hero-content h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Fix buttons */
  .hero-actions .btn {
    font-size: 1rem !important;
    padding: 0.8rem 1.5rem !important;
  }
  
  /* Fix Speech Bubble */
  .speech-bubble {
    right: 50% !important;
    transform: translateX(50%) !important;
    top: -50px !important;
    max-width: 250px !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
  .speech-bubble p {
    font-size: 0.9rem !important;
  }
  
  .hero-mascot-img {
    max-width: 250px !important;
    margin-top: 30px !important;
  }
}

/* ========================================================= */
/* PHASE 3 ENHANCEMENTS: 3D, Dark Mode, FAB Bot, Offcanvas   */
/* ========================================================= */

/* Dark Mode Theme overrides */
body

body.dark-mode .nav-logo-img { filter: drop-shadow(0 0 10px rgba(252, 163, 17, 0.5)); }
body.dark-mode footer img { filter: grayscale(100%) brightness(200%); }

/* Arabic Calligraphy Watermarks */
.bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Amiri', serif;
  font-size: 20rem;
  color: var(--primary);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* 3D Isometric Book Card styles */
.product-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px) rotateY(-5deg) rotateX(5deg);
  box-shadow: 20px 20px 40px rgba(0,0,0,0.15);
}

.product-img {
  transition: transform 0.4s ease;
  transform: translateZ(30px); /* Makes the image pop out */
}
.product-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset -5px 0 10px rgba(0,0,0,0.1);
  border-radius: inherit;
  pointer-events: none;
}

/* Floating Character / Values Filter in Shop */
.values-toolbar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.value-pill {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--primary-light);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-pill:hover, .value-pill.active {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Sprout Assistant FAB */
.faseela-bot-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--primary-light);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faseela-bot-fab:hover {
  transform: scale(1.1) rotate(10deg);
}

.bot-tooltip {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 250px;
  background: var(--white);
  color: var(--text-main);
  padding: 1.2rem;
  border-radius: 20px 20px 0 20px;
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.faseela-bot-fab.active .bot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Offcanvas Cart Modal */
.offcanvas-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.offcanvas-cart {
  position: fixed;
  top: 0; bottom: 0; left: -450px;
  width: 450px;
  max-width: 100%;
  background: var(--bg-color);
  z-index: 10000;
  box-shadow: 10px 0 30px rgba(0,0,0,0.2);
  transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

body[dir="ltr"] .offcanvas-cart {
  left: auto; right: -450px;
}
body[dir="ltr"] .offcanvas-cart.open {
  right: 0;
}

.offcanvas-overlay.open { opacity: 1; visibility: visible; }
.offcanvas-cart.open { left: 0; }

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-footer {
  padding: 1.5rem;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 10px;
}
.theme-toggle:hover {
  background: var(--primary-light);
}

/* =========================================
   Blog / Thoughts Section 
   ========================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(148, 193, 46, 0.15);
}

.article-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-family: 'Tajawal', sans-serif;
  line-height: 1.4;
}

.article-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eaeaea;
  padding-top: 1rem;
}

.article-author {
  font-weight: 600;
  color: var(--primary-dark);
}

/* Article Modal */
.article-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.article-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 20px;
  z-index: 1001;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.article-modal-img {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.article-modal-body {
  padding: 2.5rem;
}

.close-modal {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: var(--primary);
  color: #fff;
}



