/* ===================================================
   PREMIUM CSS — World-Class Design Details
   =================================================== */

/* ─── GRAIN OVERLAY ─────────────────────────────────── */
#grainOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ─── CUSTOM CURSOR ──────────────────────────────────── */
#cursor {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(212,160,48,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}
#cursorDot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}
#cursor.cursor-hover {
  width: 65px; height: 65px;
  border-color: var(--color-primary);
  background: rgba(212,160,48,0.06);
}
#cursorDot.dot-hover { transform: translate(-50%,-50%) scale(0); }
@media (max-width: 768px) { #cursor, #cursorDot { display: none !important; } }

/* ─── NAVBAR PROGRESS BAR ────────────────────────────── */
#navProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  z-index: 9998;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(212,160,48,0.6);
}

/* ─── SCROLL TO TOP BUTTON ───────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 36px;
  left: 36px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  border-radius: 50%;
  color: var(--color-dark);
  cursor: pointer;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(212,160,48,0.35);
}
#scrollTop.visible { opacity: 1; transform: translateY(0) scale(1); }
#scrollTop:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 16px 40px rgba(212,160,48,0.5); }
#scrollTop svg { transition: transform 0.3s ease; }
#scrollTop:hover svg { transform: translateY(-2px); }

/* ─── HERO CANVAS PARTICLES ──────────────────────────── */
#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

/* ─── HERO ENHANCEMENTS ──────────────────────────────── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0s both;
}
.hero-eyebrow-line {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}
.hero-eyebrow-text {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 2s both;
}
.hero-scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(212,160,48,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero-scroll-wheel {
  width: 4px; height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: 0.3; }
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── MARQUEE / TICKER ───────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: 28px 0;
  background: rgba(212,160,48,0.04);
  border-top: 1px solid rgba(212,160,48,0.08);
  border-bottom: 1px solid rgba(212,160,48,0.08);
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee-item:hover { color: var(--color-primary); }
.marquee-dot {
  width: 5px; height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ─── SECTION DECORATIVE LINE ────────────────────────── */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,48,0.15), transparent);
  transform-origin: right;
}
html[dir="rtl"] .section-line { transform-origin: left; }

/* ─── FLOATING LABELS ────────────────────────────────── */
.form-group {
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}
.form-group.focused label { color: var(--color-primary); }
.form-group input,
.form-group textarea,
.form-group select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(212,160,48,0.08), 0 0 20px rgba(212,160,48,0.05);
  background: rgba(212,160,48,0.03) !important;
}

/* ─── PRODUCT CARD 3D TILT ───────────────────────────── */
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card .product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.product-card:hover .product-card-image::after { opacity: 1; }

/* ─── HERO STATS BAR ENHANCED ────────────────────────── */
.hero-stat-item {
  position: relative;
}
.hero-stat-item::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(212,160,48,0.12);
}
html[dir="rtl"] .hero-stat-item::after { left: auto; right: 0; }
.hero-stat-item:last-child::after { display: none; }

/* ─── INTRO CARD NUMBER ──────────────────────────────── */
.intro-card-number {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(212,160,48,0.04);
  font-family: var(--font-heading);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}
html[dir="rtl"] .intro-card-number { left: auto; right: 24px; }
.intro-card:hover .intro-card-number { color: rgba(212,160,48,0.08); }

/* ─── WHY CARD ENHANCED ──────────────────────────────── */
.why-card {
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transition: width 0.5s ease;
}
html[dir="rtl"] .why-card::after { left: auto; right: 0; }
.why-card:hover::after { width: 100%; }

/* ─── TESTIMONIAL CARD QUOTE ─────────────────────────── */
.testimonial-quote {
  font-size: 5rem;
  line-height: 0.8;
  color: rgba(212,160,48,0.12);
  font-family: Georgia, serif;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}
.testimonial-card:hover .testimonial-quote { color: rgba(212,160,48,0.25); }

/* ─── STATS SECTION ──────────────────────────────────── */
.stat-item {
  position: relative;
}
.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.5s ease;
  border-radius: 1px;
}
.stat-item:hover::before { width: 60%; }

/* ─── SECTION HEADER PREMIUM ─────────────────────────── */
.section-header .subtitle::before,
.section-header .subtitle::after {
  content: '—';
  margin: 0 10px;
  opacity: 0.4;
}

/* ─── PAGE HERO ENHANCED ─────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(212,160,48,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,160,48,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,48,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── CTA SECTION ENHANCED ───────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 120%; height: 200%;
  background: radial-gradient(ellipse, rgba(212,160,48,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A030' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── FOOTER ENHANCED ────────────────────────────────── */
.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,48,0.2) 30%, rgba(212,160,48,0.2) 70%, transparent);
}

/* ─── LOADING SCREEN ─────────────────────────────────── */
#pageLoader {
  position: fixed;
  inset: 0;
  background: var(--color-darker);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#pageLoader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: 70px; height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212,160,48,0.2);
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes loaderPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,160,48,0.3); }
  50% { box-shadow: 0 0 0 20px rgba(212,160,48,0); }
}
.loader-bar-wrap {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 1px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 1px;
  animation: loaderFill 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loaderFill { from { width: 0%; } to { width: 100%; } }
.loader-text {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ─── NAVBAR BADGE ───────────────────────────────────── */
.nav-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-primary);
  color: var(--color-dark);
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  vertical-align: super;
  margin-right: 4px;
}
html[dir="rtl"] .nav-badge { margin-right: 0; margin-left: 4px; }

/* ─── FAQ ICON ROTATION ───────────────────────────────── */
.faq-item .faq-question svg {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }

/* ─── PRODUCT SPEC PILL HOVER ────────────────────────── */
.product-spec {
  transition: all 0.25s ease;
  cursor: default;
}
.product-spec:hover {
  background: rgba(212,160,48,0.15);
  border-color: rgba(212,160,48,0.4);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ─── IMAGE HOVER SHINE ──────────────────────────────── */
.product-card-image,
.wishlist-card-img-link {
  position: relative;
  overflow: hidden;
}
.product-card-image::before,
.wishlist-card-img-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: skewX(-15deg);
  transition: left 0.7s ease;
  z-index: 1;
}
.product-card:hover .product-card-image::before,
.wishlist-card:hover .wishlist-card-img-link::before {
  left: 150%;
}

/* ─── ABOUT STORY IMAGE ──────────────────────────────── */
.about-story-image {
  position: relative;
}
.about-story-image::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(212,160,48,0.12);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 0;
}
.about-story-image img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
}

/* ─── SCROLL PROGRESS DOTS (right side) ─────────────── */
#scrollDots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html[dir="rtl"] #scrollDots { right: auto; left: 28px; }
.scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}
.scroll-dot.active {
  background: var(--color-primary);
  transform: scale(1.5);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(212,160,48,0.5);
}
@media (max-width: 1024px) { #scrollDots { display: none; } }

/* ─── CONTACT CARD HOVER ─────────────────────────────── */
.contact-info-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-card:hover {
  transform: translateX(-6px);
  border-color: rgba(212,160,48,0.2) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
html[dir="rtl"] .contact-info-card:hover { transform: translateX(6px); }

/* ─── TIMELINE ENHANCED ──────────────────────────────── */
.timeline-year {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(212,160,48,0.08);
  border: 1px solid rgba(212,160,48,0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ─── VALUE CARD HOVER ───────────────────────────────── */
.value-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.value-card:hover { transform: translateY(-8px); }
.value-icon {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.value-card:hover .value-icon { transform: scale(1.12) rotate(-5deg); }

/* ─── RESPONSIVE PREMIUM ─────────────────────────────── */
@media (max-width: 768px) {
  #scrollTop { bottom: 24px; left: 24px; width: 44px; height: 44px; }
  html[dir="rtl"] #scrollTop { left: auto; right: 24px; }
  .hero-scroll-hint { display: none; }
}
