/* Modern Premium Theme for Elmawardy Food - Full Rich Version */

:root {
  --premium-dark: #0f1714;
  --premium-darker: #080c0a;
  --premium-green: #115e3b;
  --premium-light-green: #238b5d;
  --premium-gold: #d4af37;
  --premium-gold-light: #f9df8a;
  --glass-bg: rgba(15, 23, 20, 0.75);
  --glass-border: rgba(212, 175, 55, 0.15);
  --text-main: #ffffff;
  --text-muted: #d1d9e6; /* Brighter silver-blue for high contrast */
  --premium-silver: #a0aec0;
}

body {
  background-color: var(--premium-dark);
  color: var(--text-main);
  font-family: "Tajawal", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Glassmorphism Navbar */
.glass-navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.4s ease;
  z-index: 1030;
}
.glass-navbar .navbar-brand {
  color: var(--premium-gold) !important;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.glass-navbar .nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.glass-navbar .nav-link:hover, .glass-navbar .nav-link.active {
  color: var(--premium-gold) !important;
  transform: translateY(-2px);
}

/* Glass Dropdown */
.glass-dropdown {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 150px;
}
.glass-dropdown .dropdown-item {
  color: var(--text-main) !important;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.glass-dropdown .dropdown-item:hover, 
.glass-dropdown .dropdown-item.active {
  background: rgba(212, 175, 55, 0.15) !important;
  color: var(--premium-gold) !important;
}
[dir="rtl"] .glass-dropdown {
    text-align: right;
}
.align-right { text-align: right !important; }


.slider {
  margin-top: 0 !important;
}

/* Typography & General */
.text-gold { color: var(--premium-gold) !important; }
.bg-darker { background-color: var(--premium-darker); }

.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-muted) !important; }
.opacity-75 { opacity: 1 !important; } /* Removing transparency for better readability */
.opacity-50 { opacity: 0.8 !important; }

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

p, li, span, small {
    color: var(--text-muted);
    line-height: 1.7;
}

.section-subtitle {
  color: var(--text-muted) !important;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  opacity: 1 !important;
}

.section-title {
  font-weight: 800;
  font-size: 2.8rem;
  background: linear-gradient(45deg, var(--premium-gold-light), var(--premium-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--premium-gold);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(45deg, var(--premium-gold), #b5952f);
  color: #000 !important;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
  font-size: 1.1rem;
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}
.btn-outline-gold {
  background: transparent;
  color: var(--premium-gold) !important;
  border: 2px solid var(--premium-gold);
  font-weight: 700;
  border-radius: 50px;
  padding: 0.7rem 2.5rem;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
  transform: translateY(-3px);
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  height: 100%;
}
.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.04);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12);
}
.icon-gold {
  color: var(--premium-gold);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
  transition: transform 0.4s ease;
}
.glass-card:hover .icon-gold {
  transform: scale(1.15);
}

/* Products Card - Vibrant & Premium Edition */
.product-card {
  background: linear-gradient(145deg, var(--premium-darker), #0a100d);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  cursor: pointer;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--premium-gold), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 4;
}
.product-img-wrapper {
  height: 380px;
  overflow: hidden;
  position: relative;
}
.product-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 12, 10, 0.98) 0%, rgba(8, 12, 10, 0.8) 30%, rgba(8, 12, 10, 0.2) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
  filter: saturate(1.1) contrast(1.1);
  z-index: 0;
}
.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
}
.product-card:hover::after {
  opacity: 1; 
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.15);
  filter: saturate(1.3) contrast(1.2);
}
.card-body-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  z-index: 3;
}
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.text-shadow-sm {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Slide in from side */
.product-col {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-col.show-side {
  opacity: 1;
  transform: translateX(0);
}

/* Statistics Counters */
.stat-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(180deg, var(--premium-gold-light), var(--premium-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* Image wrappers */
.img-glow-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.img-glow-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(45deg, var(--premium-gold), transparent, var(--premium-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}
.img-glow-wrapper img {
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: brightness(0.9) contrast(1.1);
}
.img-glow-wrapper:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--premium-gold) 0%, rgba(212,175,55,0.1) 100%);
}
.timeline-item {
  position: relative;
  padding-right: 70px;
  margin-bottom: 3rem;
}
.timeline-icon {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--premium-dark);
  border: 2px solid var(--premium-gold);
  color: var(--premium-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  z-index: 2;
}

/* Certificate Logos */
.cert-logo {
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.9;
  transition: all 0.3s ease;
}
.cert-logo:hover {
  opacity: 1;
  color: var(--premium-gold);
  transform: scale(1.1);
}

/* Gallery Masonry/Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.1); }
.gallery-card:hover .gallery-overlay { opacity: 1; }

/* Testimonials */
.testimonial-card {
  background: var(--premium-darker);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
}
.testimonial-card i.bi-quote {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.25);
}

/* Accordion Premium */
.accordion-premium .accordion-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
}
.accordion-premium .accordion-button {
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.5rem;
  box-shadow: none !important;
}
.accordion-premium .accordion-button:not(.collapsed) {
  color: var(--premium-gold);
  background: rgba(212, 175, 55, 0.05);
}
.accordion-premium .accordion-button::after {
  filter: invert(1);
}
.accordion-premium .accordion-button:not(.collapsed)::after {
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(5deg);
}
.accordion-premium .accordion-body {
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.show { opacity: 1; transform: translateY(0); }

/* Footer */
.footer-premium {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, var(--premium-darker) 0%, #000 100%);
  padding-top: 4rem;
}
.footer-premium a { transition: color 0.3s ease; }
.footer-premium a:hover { color: var(--premium-gold) !important; }

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--premium-gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--premium-darker); }
::-webkit-scrollbar-thumb { background: var(--premium-green); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--premium-gold); }
