/* Premium Color Palette */
:root {
  --color-primary: #C62828;
  --color-primary-dark: #8E0000;
  --color-secondary: #D4AF37;
  --color-bg-light: #F5F5F5;
  --color-surface-dark: #1E1E1E;
  --color-surface-light: #FFFFFF;
  --color-text-dark: #333333;
  --color-text-light: #F0F0F0;
  
  --glass-bg-dark: rgba(5, 0, 0, 0.6);
  --glass-border: rgba(255, 69, 0, 0.2);
  --glass-border-hover: rgba(255, 69, 0, 0.6);

  --font-primary: 'Tajawal', sans-serif;
  --font-secondary: 'Cairo', sans-serif;
  
  --section-padding: 5rem 2rem;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: #000;
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
}

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

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

/* Global Embers Background */
.embers-container {
  position: fixed; /* Fixed to cover the whole scrolling area */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999; /* On top to show over everything */
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: #ff5e00;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #ff3300, 0 0 20px 4px #ffcc00;
  animation: flyUp infinite linear;
  opacity: 0;
}

@keyframes flyUp {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Typography Utilities */
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: #fff;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 0 15px rgba(198, 40, 40, 0.8);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
  bottom: -15px;
  left: 20%;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-primary);
}

/* Button Utilities */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #ff4500);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 2px solid var(--color-secondary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: #000;
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.fade-in-up {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-fast);
  background: transparent;
}

.header.scrolled {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1800px; /* Much wider so it stays at the extreme edges on big screens */
  margin: 0 auto;
  padding: 0 2%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.3rem; /* Brought the text much closer to the logo */
}

.logo {
  height: 100px;
  width: auto;
  transition: var(--transition-fast);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 15px rgba(255, 69, 0, 0.9));
  animation: floatAndGlowHeader 4s ease-in-out infinite;
}

@keyframes floatAndGlowHeader {
  0%, 100% { 
    transform: translateY(0); 
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 15px rgba(255, 69, 0, 0.8));
  }
  50% { 
    transform: translateY(-5px); 
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 25px rgba(255, 69, 0, 1)); 
  }
}

.header.scrolled .logo {
  height: 75px;
}

.logo-text {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
  transition: var(--transition-fast);
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-list a {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition-fast);
  color: #ddd;
}

.nav-list a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  right: 0;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-list a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 69, 0, 0.8);
}

.nav-list a:hover::after {
  width: 100%;
  left: 0;
}

.header:not(.scrolled) .nav-list a {
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  position: relative;
  transition: var(--transition-fast);
}

.header:not(.scrolled) .hamburger,
.header:not(.scrolled) .hamburger::before,
.header:not(.scrolled) .hamburger::after {
  background: #fff;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.hamburger.active { background: transparent !important; }
.hamburger.active::before { top: 0; transform: rotate(45deg); background: var(--color-primary) !important;}
.hamburger.active::after { top: 0; transform: rotate(-45deg); background: var(--color-primary) !important;}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  overflow: hidden;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(5,0,0,0.8) 100%);
  z-index: 1;
}

.hero-content {
  flex: 1;
  z-index: 2;
  max-width: 650px;
  padding-top: 80px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.text-highlight {
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #ddd;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image-container {
  flex: 1;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1000px;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulseFire 4s ease-in-out infinite;
}

.hero-product-img {
  width: 100%;
  max-width: 1500px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(255, 69, 0, 0.9));
  animation: floatAndGlow 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatAndGlow {
  0%, 100% { 
    transform: translateY(0) scale(1.4); 
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(255, 69, 0, 0.8));
  }
  50% { 
    transform: translateY(-25px) scale(1.45); 
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1)) drop-shadow(0 0 70px rgba(255, 69, 0, 1)) drop-shadow(0 0 100px rgba(255, 0, 0, 0.8)); 
  }
}

@keyframes pulseFire {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}

/* Features */
.features {
  padding: var(--section-padding);
  background-color: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--glass-bg-dark);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-fast);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 69, 0, 0.15);
  border-color: var(--glass-border-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.feature-title {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-desc {
  color: #ddd;
  font-size: 1rem;
}

.warning-banner {
  max-width: 1000px;
  margin: 4rem auto 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(198, 40, 40, 0.3);
  position: relative;
  overflow: hidden;
}

.warning-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.warning-content {
  position: relative;
  z-index: 2;
}

.warning-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* Products */
.products {
  padding: var(--section-padding);
  background-color: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background-color: var(--glass-bg-dark);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: var(--transition-slow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(255, 69, 0, 0.2);
  border-color: var(--glass-border-hover);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(198, 40, 40, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-fast);
}

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

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: #ddd;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--color-text-light);
  padding-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.footer-brand {
  flex: 1 1 300px;
}

.footer-logo {
  height: 150px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(255, 69, 0, 0.9));
  animation: floatAndGlowHeader 5s ease-in-out infinite;
}

.footer-about {
  color: #ccc;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-links, .footer-contact {
  flex: 1 1 200px;
}

.footer-links h3, .footer-contact h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-right: 5px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #1877F2;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: #0c5dc0;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.footer-bottom {
  background-color: #111;
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero {
    flex-direction: column; /* Stack content vertically on mobile */
    text-align: center;
    justify-content: center;
    padding-top: 120px;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-product-img {
    animation: floatAndGlowMobile 4s ease-in-out infinite;
  }

  @keyframes floatAndGlowMobile {
    0%, 100% { 
      transform: translateY(0) scale(1); /* No massive scale on mobile */
      filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(255, 69, 0, 0.8));
    }
    50% { 
      transform: translateY(-15px) scale(1.05); 
      filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1)) drop-shadow(0 0 70px rgba(255, 69, 0, 1)) drop-shadow(0 0 100px rgba(255, 0, 0, 0.8)); 
    }
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .header-container { padding: 0 5%; }
  
  .logo { height: 60px; } /* Smaller logo on mobile */
  .logo-text { font-size: 1.2rem; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
  }

  .nav-menu.active { right: 0; }
  .nav-list { flex-direction: column; gap: 3rem; text-align: center; }
  .nav-list a { font-size: 1.5rem; color: #fff !important; text-shadow: 0 0 5px rgba(255,69,0,0.8) !important;}
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-logo { height: 100px; }
  .footer-links a:hover { padding-right: 0; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .section-title { font-size: 2.2rem; }
}
