:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #151515;
  --gold: #C9A84C;
  --gold-glow: rgba(201, 168, 76, 0.2);
  --gold-dark: #A6863B;
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #2a2a2a;
  --error: #ef4444;
  --success: #22c55e;
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.text-center { text-align: center; }
.gold-text { color: var(--gold); }
.gold-dot { color: var(--gold); font-size: 1.2em; }
.w-50 { width: 50%; }

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.slide-up-delay-1 { transition-delay: 0.2s; }
.slide-up-delay-2 { transition-delay: 0.4s; }
.slide-up-delay-3 { transition-delay: 0.6s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-darker);
}

.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.3rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  font-weight: 600;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--gold);
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-darker) !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-dark) 0%, rgba(10, 10, 10, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.price-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #ddd;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-muted);
}

/* Comparison / Slider */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.benefits-list {
  list-style: none;
  margin-top: 30px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.benefits-list svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.slider-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

.image-slider {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.slider-image {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.slider-image img {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
}

.slider-image-before {
  right: 0;
  width: 50%; /* Initial state */
  z-index: 2;
}

.slider-image-before img {
  right: 0;
  width: 100%;
  /* To keep the image fixed relative to the container while container resizes */
  width: 200%; /* Because container is 50%, img needs to be 200% to fill original space */
  max-width: none;
}

.slider-image-after {
  left: 0;
  width: 100%;
  z-index: 1;
}

.slider-image-after img {
  left: 0;
  width: 100%;
}

.glare-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px) contrast(150%) brightness(150%);
  -webkit-backdrop-filter: blur(2px) contrast(150%) brightness(150%);
}

.polarized-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  mix-blend-mode: multiply;
}

.label {
  position: absolute;
  bottom: 20px;
  padding: 5px 15px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 3;
}

.before-label { right: 20px; }
.after-label { left: 20px; }

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.slider-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-darker);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Stats / Night Driving */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.stat-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.stat-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
  transition: transform 0.5s ease;
}

.uv-card .stat-bg {
  background-image: url('/assets/photo_6003643541806059260_x_1785343205580.jpg');
}

.night-card .stat-bg {
  background-image: url('/assets/photo_6003643541806059253_y_1785343205582.jpg');
  filter: brightness(0.6) contrast(1.2);
}

.stat-card:hover .stat-bg {
  transform: scale(1.05);
}

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

.stat-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-label {
  font-size: 0.9rem;
}

.stat-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.stat-card p {
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* How It Works Layer Diagram */
.layers-diagram {
  max-width: 600px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.layer {
  background: var(--bg-card);
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  transform-origin: center;
}

.layer:hover {
  transform: scale(1.05);
  border-color: var(--gold);
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.gold-layer {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: bold;
}

/* Lifestyle Masonry */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
}

.masonry-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.1);
}

.masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay span {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.masonry-item:hover .masonry-overlay span {
  transform: translateY(0);
}

.item-1 { grid-column: span 2; grid-row: span 2; }
.item-2 { grid-column: span 2; grid-row: span 1; }
.item-3 { grid-column: span 1; grid-row: span 1; }
.item-4 { grid-column: span 1; grid-row: span 1; }
.item-5 { grid-column: span 2; grid-row: span 1; }
.item-6 { grid-column: span 1; grid-row: span 1; }
.item-7 { grid-column: span 1; grid-row: span 1; }
.item-8 { grid-column: span 2; grid-row: span 1; }
.item-9 { grid-column: span 2; grid-row: span 1; }

/* Reviews */
.reviews-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
}

.reviews-grid::-webkit-scrollbar {
  display: none; /* Chrome */
}

.review-card {
  min-width: 350px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.global-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--bg-card);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
}

.faq-icon {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  padding: 0 20px;
  background: var(--bg-dark);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Order Form */
.order-section {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #111 100%);
  border-top: 1px solid var(--border-color);
}

.order-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.order-features {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.order-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.order-feature svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.product-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.product-preview img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

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

.order-form-wrapper {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.required {
  color: var(--error);
}

input, select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}

.text-right {
  text-align: right;
}

/* Color Selector */
.color-group label:first-child {
  display: block;
  margin-bottom: 12px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-dark);
  transition: border-color 0.2s, background 0.2s;
  flex: 1 1 calc(50% - 10px);
  min-width: 130px;
}

.color-option:hover {
  border-color: var(--gold);
}

.color-option input[type="radio"] {
  display: none;
}

.color-option input[type="radio"]:checked ~ .color-label {
  color: var(--gold);
  font-weight: 600;
}

.color-option:has(input[type="radio"]:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.color-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

/* Qty group */
.qty-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  padding: 15px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.qty-group label {
  margin: 0;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--gold);
  color: var(--bg-darker);
}

#quantity {
  width: 50px;
  text-align: center;
  background: transparent;
  border: none;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0;
}

.order-summary {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.total-row {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.footer-desc {
  max-width: 500px;
  margin: 0 auto 30px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--bg-darker);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sticky Button */
.sticky-btn {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-darker);
  border: 1px solid var(--gold);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: bottom 0.3s ease;
  white-space: nowrap;
}

.sticky-btn.visible {
  bottom: 30px;
}

.sticky-btn:hover {
  background: var(--gold);
  color: var(--bg-darker);
}

.sticky-btn:hover .gold-text {
  color: var(--bg-darker);
}

/* Form Alerts & Loading */
.form-alert {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-alert.hidden {
  display: none;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0,0,0,0.3);
  border-top-color: var(--bg-darker);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.loading .spinner { display: block; }
.loading .btn-text { display: none; }

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

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid, .stats-grid, .order-container { grid-template-columns: 1fr; gap: 40px; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .item-1, .item-2, .item-3, .item-4, .item-5, .item-6, .item-7, .item-8, .item-9 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .desktop-nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-title { font-size: 2.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .w-50 { width: 100%; }
}
