/* ===================================
   Easy 2 Learn - Kuwait
   Main Stylesheet
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ===================================
   CSS Variables
   =================================== */
:root {
  --primary: #00B4A6;
  --primary-dark: #008F84;
  --primary-light: #E0F7F5;
  --secondary: #F5A623;
  --secondary-dark: #D4891A;
  --secondary-light: #FFF3DC;
  --accent-red: #E84040;
  --accent-purple: #7B5EA7;
  --accent-green: #4CAF50;
  --dark: #1A2340;
  --dark-alt: #2D3A5F;
  --gray: #6B7A99;
  --light-gray: #F4F6FB;
  --white: #FFFFFF;

  --font-main: 'Cairo', sans-serif;
  --font-display: 'Tajawal', sans-serif;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 8px 32px rgba(0, 180, 166, 0.25);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  direction: rtl;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  font-weight: 400;
  margin-top: 12px;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-main);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 180, 166, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 18px;
}

/* ===================================
   Top Banner
   =================================== */
.top-banner {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.top-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.top-banner .stars {
  color: var(--secondary-light);
  font-size: 16px;
}

/* ===================================
   Navbar
   =================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 180, 166, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--dark);
}

.logo-text .name span {
  color: var(--primary);
}

.logo-text .tagline {
  font-size: 11px;
  color: var(--gray);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-alt);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--dark-alt);
  transition: var(--transition-bounce);
  cursor: pointer;
}

.cart-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: calc(100vh - 120px);
  background: linear-gradient(135deg, #E8FBF9 0%, #FFF8EE 50%, #E8F4FF 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,180,166,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
  width: 80px; height: 80px;
  background: var(--primary);
  top: 15%; right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 50px; height: 50px;
  background: var(--secondary);
  top: 60%; right: 25%;
  animation-delay: 2s;
}

.shape-3 {
  width: 120px; height: 120px;
  background: var(--accent-purple);
  bottom: 20%; left: 10%;
  animation-delay: 4s;
}

.shape-4 {
  width: 40px; height: 40px;
  background: var(--accent-red);
  top: 30%; left: 20%;
  animation-delay: 1s;
}

.shape-5 {
  width: 60px; height: 60px;
  background: var(--primary);
  bottom: 40%; right: 5%;
  animation-delay: 3s;
  border-radius: 12px;
  transform: rotate(45deg);
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-text .tagline-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-text .emoji-bounce {
  font-size: 28px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-text h1 .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-text h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--secondary);
  border-radius: 4px;
  opacity: 0.5;
}

.hero-text h1 .alt-highlight {
  color: var(--secondary);
}

.hero-text p {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.stat {
  text-align: center;
}

.stat .number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat .label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Image */
.hero-visual {
  position: relative;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-3deg);
  transition: var(--transition);
}

.hero-img-wrap:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-8px);
}

.hero-img-wrap img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: top center;
}

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  animation: cardFloat 4s ease-in-out infinite;
}

.hero-card-1 {
  top: 30px;
  left: -30px;
  animation-delay: 0s;
}

.hero-card-2 {
  bottom: 60px;
  left: -20px;
  animation-delay: 2s;
}

.hero-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hero-card .icon.green { background: #E8F5E9; }
.hero-card .icon.yellow { background: #FFF8E1; }

.hero-card .text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hero-card .text .title {
  font-size: 14px;
  color: var(--dark);
  font-weight: 700;
}

.hero-card .text .sub {
  font-size: 12px;
  color: var(--gray);
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===================================
   Why Choose Us (Features)
   =================================== */
.features {
  padding: 100px 0;
  background: var(--white);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--light-gray);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.icon-teal { background: linear-gradient(135deg, #E0F7F5, #B2DFDB); }
.icon-yellow { background: linear-gradient(135deg, #FFF8E1, #FFE082); }
.icon-pink { background: linear-gradient(135deg, #FCE4EC, #F48FB1); }
.icon-blue { background: linear-gradient(135deg, #E3F2FD, #90CAF9); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===================================
   Products Section
   =================================== */
.products {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  background: var(--white);
  border: 2px solid #E5E9F2;
  transition: var(--transition-bounce);
  font-family: var(--font-main);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 180, 166, 0.3);
  transform: translateY(-2px);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  position: relative;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: white;
}

.product-badge.new { background: var(--primary); }
.product-badge.bestseller { background: var(--secondary); }
.product-badge.sale {
  background: var(--accent-red);
}

.product-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9ff, #e8f8f7);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 180, 166, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay .btn {
  background: white;
  color: var(--primary);
  padding: 10px 24px;
  font-size: 14px;
}

.product-overlay .btn:hover {
  background: var(--secondary);
  color: white;
  transform: scale(1.05);
}

.product-body {
  padding: 20px 22px;
}

.product-category {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.product-price .current {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.product-price .original {
  font-size: 13px;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 400;
}

.product-price .currency {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.add-to-cart {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-bounce);
  cursor: pointer;
}

.add-to-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--shadow-glow);
}

/* ===================================
   Age Groups Section
   =================================== */
.age-groups {
  padding: 100px 0;
  background: var(--white);
}

.age-groups-header {
  text-align: center;
  margin-bottom: 56px;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.age-card {
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.age-card::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.age-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.age-card.teal { background: linear-gradient(135deg, #00B4A6, #008F84); color: white; }
.age-card.yellow { background: linear-gradient(135deg, #F5A623, #D4891A); color: white; }
.age-card.purple { background: linear-gradient(135deg, #7B5EA7, #5E4580); color: white; }
.age-card.pink { background: linear-gradient(135deg, #E84040, #C42828); color: white; }

.age-emoji {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  animation: floatEmoji 3s ease-in-out infinite;
}

.age-card:nth-child(1) .age-emoji { animation-delay: 0s; }
.age-card:nth-child(2) .age-emoji { animation-delay: 0.75s; }
.age-card:nth-child(3) .age-emoji { animation-delay: 1.5s; }
.age-card:nth-child(4) .age-emoji { animation-delay: 2.25s; }

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

.age-range {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.age-label {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 12px;
}

.age-count {
  font-size: 13px;
  opacity: 0.8;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
}

/* ===================================
   Testimonials
   =================================== */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,180,166,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(0, 180, 166, 0.12);
  border-color: rgba(0, 180, 166, 0.3);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--secondary);
  font-size: 18px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.author-info .name {
  font-weight: 700;
  color: var(--white);
  font-size: 15px;
}

.author-info .role {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  text-align: center;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-emoji {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
  animation: bounce 2s infinite;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 46px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.cta-section p {
  font-size: clamp(15px, 3.5vw, 18px);
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 32px;
  padding: 0 8px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: clamp(15px, 3.5vw, 17px);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  transition: var(--transition-bounce);
  font-family: var(--font-main);
  text-decoration: none;
  min-width: 200px;
  flex: 1;
  max-width: 280px;
  white-space: nowrap;
}

.whatsapp-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.5);
}

.instagram-btn {
  background: linear-gradient(135deg, #E1306C, #F77737, #833AB4);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: clamp(15px, 3.5vw, 17px);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(225, 48, 108, 0.35);
  transition: var(--transition-bounce);
  font-family: var(--font-main);
  text-decoration: none;
  min-width: 200px;
  flex: 1;
  max-width: 280px;
  white-space: nowrap;
}

.instagram-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(225, 48, 108, 0.5);
}

/* Mobile: stack buttons full width */
@media (max-width: 480px) {
  .cta-section {
    padding: 60px 0;
  }
  .cta-emoji {
    font-size: 48px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 4px;
  }
  .whatsapp-btn,
  .instagram-btn {
    max-width: 100%;
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    border-radius: 18px;
  }
}

/* CTA Info Row */
.cta-info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray);
}
.cta-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  transition: color 0.2s;
}
.cta-info-item:hover { color: var(--primary); }
.cta-sep {
  color: #ccc;
  font-weight: 300;
}
@media (max-width: 480px) {
  .cta-sep { display: none; }
  .cta-info-row {
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 16px;
    padding: 16px;
    margin-top: 20px;
  }
  .cta-info-item {
    font-size: 15px;
    font-weight: 700;
  }
}

/* ── CTA Section mobile — 600px ── */
@media (max-width: 600px) {
  .cta-section {
    padding: 52px 0;
  }
  .cta-inner {
    padding: 0 16px;
  }
  .cta-section h2 {
    font-size: 24px;
  }
  .cta-section p {
    font-size: 14px;
    padding: 0 4px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }
  .whatsapp-btn,
  .instagram-btn {
    min-width: unset;
    max-width: 100%;
    width: 100%;
    flex: unset;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 16px;
    justify-content: center;
  }
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-text .name {
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition-bounce);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px) scale(1.1);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a::before {
  content: '←';
  font-size: 12px;
  color: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-right: 4px;
}

.footer-col ul li a:hover::before {
  opacity: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 180, 166, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.contact-text strong {
  color: var(--white);
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom .highlight {
  color: var(--primary);
}

/* Developer credit */
.developer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.developer-credit strong {
  color: rgba(255,255,255,0.65);
  font-weight: 700;
}
.developer-credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: color 0.2s;
}
.developer-credit a:hover { color: #fff; }
.developer-credit span:first-child { font-size: 14px; }

/* ===================================
   Mobile Menu
   =================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  padding: 80px 32px 32px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

.mobile-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--light-gray);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
}

.mobile-close:hover {
  background: var(--accent-red);
  color: white;
}

/* ===================================
   Scroll to Top
   =================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-bounce);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ===================================
   Toast Notification
   =================================== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--dark);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition-bounce);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast .toast-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ===================================
   Animations
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content {
    padding: 48px 0;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .products-grid { grid-template-columns: 1fr; }

  .age-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .age-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { 
    flex-direction: column;
    align-items: center;
  }
  .btn-lg { width: 100%; max-width: 320px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 400px;
  }
}

/* ══════════════════════════════════════════════
   MOBILE COMPREHENSIVE FIXES — تحسينات الهاتف
   ══════════════════════════════════════════════ */

/* Contact info in footer */
@media (max-width: 600px) {
  .contact-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .contact-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
  }
  .contact-text {
    font-size: 13px;
  }
}

/* Products grid — 2 col on medium mobile */
@media (min-width: 480px) and (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-card .product-img-wrap {
    height: 160px;
  }
}

/* Product card footer on small screens */
@media (max-width: 420px) {
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .product-footer > div:last-child {
    width: 100%;
    justify-content: space-between;
  }
  .details-btn {
    flex: 1;
    text-align: center;
  }
}

/* Navbar on very small screens */
@media (max-width: 360px) {
  .navbar-inner {
    padding: 0 12px;
  }
  .logo-text .name {
    font-size: 16px;
  }
  .logo-cube {
    width: 40px; height: 40px;
    font-size: 20px;
  }
}

/* Hero stats on mobile */
@media (max-width: 480px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }
  .stat {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 14px;
  }
}

/* Features grid — single col on mobile */
@media (max-width: 420px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 20px;
  }
}

/* Testimonials on mobile */
@media (max-width: 600px) {
  .testimonials-grid {
    gap: 16px;
  }
  .testimonial-card {
    padding: 20px 16px;
  }
  .testimonial-text {
    font-size: 14px;
  }
}

/* Age cards on mobile */
@media (max-width: 360px) {
  .age-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .age-card {
    padding: 20px 12px;
  }
}

/* Top banner text on mobile */
@media (max-width: 500px) {
  .top-banner-inner {
    font-size: 12px;
    gap: 6px;
    padding: 0 8px;
  }
  .stars { display: none; }
}

/* Cart button in nav on mobile */
@media (max-width: 480px) {
  .nav-actions .btn-primary {
    display: none;
  }
}

/* Section titles on mobile */
@media (max-width: 480px) {
  .section-title {
    font-size: 24px !important;
  }
  .section-subtitle {
    font-size: 14px !important;
  }
}

/* Footer grid mobile */
@media (max-width: 600px) {
  .footer {
    padding: 48px 0 0;
  }
  .footer-grid {
    gap: 32px;
  }
  .footer-brand p {
    font-size: 13px;
    line-height: 1.7;
  }
  .social-links {
    justify-content: flex-start;
    gap: 10px;
  }
  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .footer-col ul li a {
    font-size: 13px;
    padding: 5px 0;
  }
  .footer-bottom {
    padding: 20px 16px;
    font-size: 12px;
  }
}

/* Scroll to top button */
@media (max-width: 480px) {
  .scroll-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
