/*========================
  Lara Hijab - Professional CSS Styles
  ========================*/

/*------------------------
  1. Global Variables & Base Styles
  ------------------------*/
:root {
  /*
    Colors
    -------
    You can easily change the entire color scheme from here.
    - Gold: The main accent color.
    - Dark: The primary background color.
    - Light: The text color.
  */
  --color-gold: #D4AF37;
  --color-dark: #121212;
  --color-light: #f0f0f0;

  /*
    Fonts
    -------
    - font-main: The main font for body text.
    - font-display: The font for titles and headings.
  */
  --font-main: 'Readex Pro', sans-serif;
  --font-display: 'Marhey', sans-serif;
  
  /*
    Status Colors & Animations (for product badges)
    ---------------------------------------------
    These colors are used for badges like "New" or "Coming Soon".
  */
  --color-new: #3498DB;
  --color-sale: #27AE60;
  --color-sold: #E74C3C;
  --color-coming: #F39C12;
  --color-normal: #7F8C8D;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: var(--color-light);
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-top: 0;
}

/*------------------------
  2. Background & Header
  ------------------------*/
#gold-dust { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: -1; 
  pointer-events: none; 
}

.site-header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.site-header img {
  width: 60px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.site-header img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/*------------------------
  3. Hero Section
  ------------------------*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Adjusting the gradient for the requested opacity */
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7)), url('b.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 10%, var(--color-dark) 90%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 { 
  font-family: var(--font-display); 
  font-size: 5rem; 
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--color-gold), #f4d03f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.6);
  }
}

.hero p { 
  color: var(--color-light); 
  font-size: 1.5rem; 
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: all 0.6s ease;
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  box-shadow: 0 0 20px var(--color-gold);
}

.hero-cta:hover::before {
  left: 100%;
}

/*------------------------
  4. Products Section
  ------------------------*/
.section { 
  padding: 100px 0; 
}

.section-title { 
  font-family: var(--font-display); 
  color: var(--color-gold); 
  text-align: center; 
  margin-bottom: 60px;
  position: relative;
  font-size: 2.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--color-gold);
  margin: 20px auto;
  border-radius: 2px;
}

.filters {
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 15px; 
  margin-bottom: 50px;
  position: sticky; 
  top: 20px; 
  background: rgba(18, 18, 18, 0.95); 
  padding: 20px; 
  z-index: 999; 
  border-radius: 15px;
  transition: all 0.4s ease-in-out;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.filter-btn {
  background: transparent; 
  border: 1px solid var(--color-gold);
  color: var(--color-gold); 
  padding: 10px 25px; 
  border-radius: 50px; 
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-gold);
  transition: all 0.3s ease;
  z-index: -1;
}

.filter-btn:hover, 
.filter-btn.active { 
  color: var(--color-dark); 
}

.filter-btn:hover::before,
.filter-btn.active::before {
  width: 100%;
}

.product-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 2.5rem; 
}

.product-card {
  background: #1a1a1a; 
  border-radius: 20px; 
  overflow: hidden; 
  position: relative;
  transform-style: preserve-3d; 
  transition: all 0.4s ease; 
  border: 1px solid #2a2a2a;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
}

.card-image-wrapper { 
  aspect-ratio: 3 / 4; 
  position: relative; 
  overflow: hidden; 
}

.card-image-wrapper img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.6s ease; 
}

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

.logo-watermark { 
  position: absolute; 
  bottom: 20px; 
  left: 20px; 
  width: 50px; 
  opacity: 0.1; 
  z-index: 5; 
}

.card-badge { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  padding: 8px 16px; 
  border-radius: 50px; 
  font-size: 0.9rem; 
  font-weight: 600; 
  z-index: 4; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.card-badge.جديد {
  background-color: var(--color-new);
  color: #fff;
  animation-name: pulse-blue;
}

.card-badge.تخفيض {
  background-color: var(--color-sale);
  color: #fff;
  animation-name: pulse-green;
}

.card-badge.نفذ {
  background-color: var(--color-sold);
  color: #fff;
  animation-name: pulse-red;
}

.card-badge.قريبا {
  background-color: var(--color-coming);
  color: #fff;
  animation-name: pulse-orange;
}

/* Animations for badges */
@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

@keyframes pulse-orange {
  0% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); 
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(243, 156, 18, 0.4);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); 
  }
}

.card-content { 
  padding: 1.8rem; 
  text-align: center; 
}

.card-title { 
  font-size: 1.3rem; 
  font-weight: 600; 
  margin-bottom: 0.8rem; 
}

.card-price { 
  font-size: 1.4rem; 
  color: var(--color-gold); 
  font-weight: bold; 
}

.card-price .old-price { 
  text-decoration: line-through; 
  color: #888; 
  font-size: 1rem; 
  margin-inline-start: 10px; 
}

.card-colors { 
  display: flex; 
  justify-content: center; 
  gap: 10px; 
  margin-top: 1.2rem; 
}

.color-swatch { 
  width: 26px; 
  height: 26px; 
  border-radius: 50%; 
  border: 2px solid #555; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.color-swatch:hover { 
  transform: scale(1.2); 
  border-color: var(--color-gold); 
  box-shadow: 0 0 10px var(--color-gold);
}

/*------------------------
  5. Contact Section
  ------------------------*/
.contact-section {
  background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
  padding: 100px 0;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" stroke="%23D4AF37" fill="none" /></svg>');
  background-size: 200px;
  opacity: 0.1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: all 0.5s ease;
  opacity: 0;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold);
}

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

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: var(--color-gold);
  color: var(--color-dark);
  transform: scale(1.1);
}

.contact-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.contact-info {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-link:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.location-button {
  margin-top: 2rem;
  text-align: center;
}

/*------------------------
  6. Modal Styles
  ------------------------*/
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content { 
  background-color: var(--color-dark); 
  border: 2px solid var(--color-gold); 
  border-radius: 20px; 
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
  overflow: hidden;
  animation: modalAppear 0.5s ease forwards;
  position: relative;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header { 
  border-bottom: 1px solid #333; 
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title { 
  font-family: var(--font-display); 
  color: var(--color-gold); 
  font-size: 2rem;
  margin: 0;
}

.modal-content .btn-close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1050;
  filter: invert(1);
  opacity: 0.8;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
  border: none;
}

.modal-content .btn-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-body { 
  padding: 2rem;
}

.modal-product-image-container { 
  position: relative; 
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-product-image { 
  width: 100%; 
  height: auto; 
  border-radius: 15px; 
  transition: transform 0.5s ease;
}

.modal-product-image:hover {
  transform: scale(1.02);
}

.modal-logo-watermark { 
  position: absolute; 
  bottom: 25px; 
  left: 25px; 
  width: 70px; 
  opacity: 0.8; 
  z-index: 1000; 
}

.product-details {
  padding: 0 1.5rem;
}

.product-price {
  font-size: 1.8rem;
  color: var(--color-gold);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.product-colors-modal {
  display: flex;
  gap: 12px;
  margin: 2rem 0;
  justify-content: center;
}

.product-colors-modal .color-swatch {
  width: 35px;
  height: 35px;
  border-width: 3px;
}

.product-description {
  margin-top: 1.5rem;
  line-height: 1.6;
  color: #ccc;
}

/*------------------------
  7. Footer & Utility
  ------------------------*/
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 996;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-dark);
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-5px);
}

.footer {
  background: #0a0a0a;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-logo {
  width: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-text {
  color: #888;
  margin-bottom: 0;
}

/* Loading animation */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--color-gold);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 2rem auto;
  display: block;
}

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

#loading {
  text-align: center;
  padding: 2rem 0;
}

/*------------------------
  8. Responsive Styles
  ------------------------*/
@media (max-width: 1200px) {
  .hero h1 { font-size: 4rem; }
}
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .contact-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (max-width: 768px) {
  .hero { height: 80vh; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.2rem; }
  .section { padding: 80px 0; }
  .section-title { font-size: 2rem; }
  .filters { padding: 15px; gap: 10px; }
  .filter-btn { padding: 8px 20px; font-size: 0.9rem; }
  .modal-body { padding: 1.5rem; }
  .modal-title { font-size: 1.7rem; }
  .contact-card { min-height: 220px; padding: 1.5rem; }
  .contact-icon { width: 70px; height: 70px; font-size: 2rem; }
}
@media (max-width: 576px) {
  .site-header { top: 15px; left: 15px; }
  .site-header img { width: 50px; }
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: 1.1rem; }
  .hero-cta { padding: 10px 25px; font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
  .product-grid { grid-template-columns: 1fr; gap: 2rem; }
  .filters { position: static; margin-bottom: 30px; }
  .back-to-top { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .modal-header { padding: 1.2rem; }
  .modal-title { font-size: 1.5rem; }
  .modal-body { padding: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 200px; padding: 1.2rem; }
  .contact-icon { width: 60px; height: 60px; font-size: 1.8rem; }
  .contact-title { font-size: 1.2rem; }
  .contact-info { font-size: 1rem; }
}
