/* ============================================
   Fancy Foods - Premium Styling
   Professional Bilingual Website Styles
   ============================================ */

/* ============ CSS Variables ============ */
:root {
  /* Brand Colors */
  --primary-green: #2F5F1F;
  --primary-green-light: #4A7C2F;
  --primary-green-dark: #1E3F14;
  --gold: #D4AF37;
  --gold-light: #E5C45F;
  --gold-dark: #B8962A;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --gray: #E5E5E5;
  --medium-gray: #9CA3AF;
  --dark-gray: #4B5563;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #B8962A 100%);
  --gradient-green: linear-gradient(135deg, #2F5F1F 0%, #4A7C2F 100%);
  --gradient-hero: linear-gradient(135deg, #D4AF37 0%, #7cb342 50%, #2F5F1F 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  --shadow-green: 0 4px 20px rgba(47, 95, 31, 0.3);
  
  /* Typography */
  --font-arabic: 'Tajawal', 'Cairo', sans-serif;
  --font-english: 'Inter', 'Poppins', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px;
  --card-radius: 20px;
  --btn-radius: 50px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body.en {
  font-family: var(--font-english);
}

body.rtl {
  direction: rtl;
}

body.ltr {
  direction: ltr;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul, ol {
  list-style: none;
}

/* ============ Container ============ */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.header {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  width: 60px;
  height: 60px;
  transition: var(--transition-normal);
}

.logo:hover .logo-icon {
  transform: scale(1.05);
}

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

.logo-text-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.2;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-gold);
  transition: var(--transition-normal);
  border-radius: 3px;
}

.nav-link:hover::before {
  width: 60%;
}

.nav-link:hover {
  color: var(--primary-green);
  background: rgba(47, 95, 31, 0.05);
}

.nav-link.active {
  background: var(--gradient-green);
  color: var(--white);
}

.nav-link.active::before {
  display: none;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 15px;
  padding: 5px;
  background: var(--light-gray);
  border-radius: var(--btn-radius);
}

.rtl .lang-switcher {
  margin-left: 0;
  margin-right: 15px;
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-light);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--primary-green);
}

/* Phone numbers need LTR rendering even inside RTL blocks */
.phone-number {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ Hero Section ============ */
.hero {
  background: var(--gradient-hero);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 10px 25px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 35px;
  border-radius: var(--btn-radius);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-green);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-green {
  background: var(--gradient-green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-green:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(47, 95, 31, 0.4);
}

/* ============ Sections ============ */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(47, 95, 31, 0.1);
  color: var(--primary-green);
  padding: 8px 20px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: 4px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 25px auto 0;
}

/* ============ Cards ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(47, 95, 31, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 25px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.card-text {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
}

/* ============ Product Cards ============ */
.product-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
  transition: var(--transition-normal);
  position: relative;
}

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

.product-image {
  height: 220px;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--gray) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(47, 95, 31, 0.05) 100%);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-gold);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.rtl .product-badge {
  right: auto;
  left: 15px;
}

.product-content {
  padding: 25px;
}

.product-category {
  display: inline-block;
  background: rgba(47, 95, 31, 0.1);
  color: var(--primary-green);
  padding: 5px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.product-desc {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.product-features {
  margin-bottom: 0;
}

.product-features li {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-features li::before {
  content: '✓';
  color: var(--primary-green-light);
  font-weight: bold;
  font-size: 16px;
}

/* ============ Stats Section ============ */
.stats {
  background: var(--gradient-green);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: var(--white);
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gold); /* Fallback for browsers that don't support background-clip: text */
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
}

.feature-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.feature-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* ============ CTA Section ============ */
.cta-section {
  background: var(--gradient-green);
  padding: 80px 40px;
  text-align: center;
  border-radius: var(--card-radius);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 15px;
}

.cta-text {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Contact Form ============ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 15px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray);
  border-radius: 15px;
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition-normal);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(47, 95, 31, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============ Footer ============ */
.footer {
  background: var(--primary-green-dark);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-col p,
.footer-col li {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.8;
}

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

.footer-col a {
  opacity: 0.9;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.8;
}

/* ============ Page Header ============ */
.page-header {
  background: var(--gradient-hero);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
  font-size: 20px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Two Column Layout ============ */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

/* ============ Contact Info Cards ============ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.contact-info-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
  text-align: center;
  transition: var(--transition-normal);
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-info-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.contact-info-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
}

/* ============ About Section ============ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: var(--gradient-green);
  border-radius: var(--card-radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid rgba(212, 175, 55, 0.5);
  border-radius: calc(var(--card-radius) - 10px);
}

.about-image-icon {
  font-size: 120px;
  position: relative;
  z-index: 1;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-list {
  margin-top: 25px;
}

.about-list li {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-list li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: var(--gradient-gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

/* ============ Services Grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(47, 95, 31, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
}

.service-card ul {
  margin-top: 20px;
}

.service-card li {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card li::before {
  content: '•';
  color: var(--gold);
  font-size: 20px;
}

/* ============ Animations ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease infinite;
}

/* ============ Scroll Progress Indicator ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-gold);
  z-index: 1001;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============ Floating WhatsApp Button ============ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--white);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.rtl .whatsapp-float {
  right: auto;
  left: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: var(--text-dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.rtl .whatsapp-tooltip {
  right: auto;
  left: 75px;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--text-dark);
}

.rtl .whatsapp-tooltip::after {
  right: auto;
  left: -8px;
  border-left-color: transparent;
  border-right-color: var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

.rtl .whatsapp-float:hover .whatsapp-tooltip {
  right: auto;
  left: 80px;
}

/* ============ Back to Top Button ============ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 998;
  box-shadow: var(--shadow-green);
  border: none;
}

.rtl .back-to-top {
  right: auto;
  left: 30px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(47, 95, 31, 0.4);
}

/* ============ Loading Skeleton ============ */
.skeleton {
  background: linear-gradient(90deg, var(--gray) 25%, var(--light-gray) 50%, var(--gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ============ Glassmorphism Effects ============ */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ============ Enhanced Card Hover Effects ============ */
.card-3d {
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* ============ Ripple Effect ============ */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* ============ Gradient Text ============ */
.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ Glow Effects ============ */
.glow {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  transition: box-shadow 0.3s ease;
}

.glow:hover {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

/* ============ Enhanced Form Interactions ============ */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
  transform: translateY(-100%) scale(0.85);
  color: var(--primary-green);
}

.form-input.error,
.form-textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-input.success,
.form-textarea.success {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(47, 95, 31, 0.1);
}

.form-feedback {
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.form-feedback.error {
  display: block;
  color: #dc3545;
}

.form-feedback.success {
  display: block;
  color: var(--primary-green);
}

/* ============ Tooltip Styles ============ */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--text-dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-dark);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

[data-tooltip]:hover::before {
  transform: translateX(-50%) translateY(-10px);
}

/* ============ Number Counter Animation ============ */
.counter {
  display: inline-block;
  transition: all 0.3s ease;
}

.counter.counting {
  transform: scale(1.1);
}

/* ============ Image Hover Effects ============ */
.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 0.5s ease;
}

.image-zoom:hover img {
  transform: scale(1.1);
}

/* ============ Staggered Animation Delays ============ */
/* Ensure all animated elements are visible by default */
[data-animate] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

[data-animate]:nth-child(1) { animation-delay: 0.1s; }
[data-animate]:nth-child(2) { animation-delay: 0.2s; }
[data-animate]:nth-child(3) { animation-delay: 0.3s; }
[data-animate]:nth-child(4) { animation-delay: 0.4s; }
[data-animate]:nth-child(5) { animation-delay: 0.5s; }
[data-animate]:nth-child(6) { animation-delay: 0.6s; }
[data-animate]:nth-child(7) { animation-delay: 0.7s; }
[data-animate]:nth-child(8) { animation-delay: 0.8s; }

/* ============ Enhanced Hover States ============ */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* ============ Card Glow on Hover ============ */
.product-card::after,
.feature-card::after,
.service-card::after,
.contact-info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.product-card:hover::after,
.feature-card:hover::after,
.service-card:hover::after,
.contact-info-card:hover::after {
  opacity: 1;
}

/* ============ Smooth Page Transitions ============ */
.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ============ Loading State ============ */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid var(--gray);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

/* ============ Focus Visible for Accessibility ============ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* ============ Smooth Section Reveal ============ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.animate-reveal {
  animation: fadeInUp 0.8s ease forwards;
}

/* ============ Text Selection Styling ============ */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-dark);
}

::-moz-selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-dark);
}

/* ============ Shake Animation ============ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* ============ Ripple Effect Elements ============ */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============ Body Transition ============ */
body {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============ Responsive Design ============ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-column,
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    order: -1;
    height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 20px;
    gap: 5px;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .lang-switcher {
    margin: 0;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .page-title {
    font-size: 36px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .cards-grid,
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  
  .btn {
    width: 100%;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .logo-text-main {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .page-title {
    font-size: 30px;
  }
}

/* ============ Print Styles ============ */
@media print {
  .header,
  .footer,
  .cta-section,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    padding: 20px 0;
  }
}
