/* BigGem Website - Modern Clean Theme (Refined) */

/* Variables */
:root {
  /* Colors */
  --primary: #2e0056;
  --primary-light: #57078d;
  --primary-dark: #1a0033;
  --secondary: #00d4ff;
  --accent: #ff007a;

  --bg-white: #ffffff;
  --bg-gray: #f1f5f9;
  --bg-dark: #0f172a;

  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #f8fafc;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1a0033 0%, #2e0056 50%, #4a0080 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-icon: linear-gradient(135deg, #2e0056 0%, #57078d 100%);

  /* Spacing & Layout */
  --container-width: 1200px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px -5px rgba(46, 0, 86, 0.15);
  --shadow-glow: 0 0 20px rgba(87, 7, 141, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  direction: rtl;
  /* Default RTL */
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Wave Animations */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 5;
  overflow: hidden;
}

.waves {
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: -7px;
}

.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Mobile adjustments for waves */
@media (max-width: 768px) {
  .hero-waves {
    height: 60px;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

/* Space / Galaxy Background Effect */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
    radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
    radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  animation: star-drift 100s linear infinite;
  z-index: 1;
  opacity: 0.6;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(87, 7, 141, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(46, 0, 86, 0.6) 0%, transparent 60%);
  animation: nebula-float 15s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, 0.05) 45%, transparent 60%);
  background-size: 200% 200%;
  animation: aurora-shimmer 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes star-drift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-550px);
  }
}

@keyframes nebula-float {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes aurora-shimmer {
  0% {
    background-position: 0% 50%;
    opacity: 0.3;
  }

  50% {
    background-position: 100% 50%;
    opacity: 0.6;
  }

  100% {
    background-position: 0% 50%;
    opacity: 0.3;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-text {
  text-align: right;
  color: var(--text-light);
}

[dir="ltr"] .hero-text {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(to bottom, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 48px;
  max-width: 580px;
  line-height: 1.8;
  font-weight: 400;
}

/* Refined Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background: #ffffff;
}

/* Shine effect on hover */
.btn-white::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transition: 0.5s;
  transform: skewX(-20deg);
}

.btn-white:hover::after {
  left: 150%;
}

.btn-transparent {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-transparent:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 550px;
  animation: float-refined 8s ease-in-out infinite;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes float-refined {

  0%,
  100% {
    transform: translateY(0) rotateX(2deg) rotateY(-2deg);
  }

  50% {
    transform: translateY(-25px) rotateX(-2deg) rotateY(2deg);
  }
}

/* --- Products Section (Clean Light Theme) --- */
.products-section {
  padding: 120px 0;
  background: var(--bg-gray);
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}

/* Clean Product Card */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.product-card:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.product-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, white, #f8fafc);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--primary);
  font-size: 2rem;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.product-card:hover .product-icon {
  background: var(--gradient-icon);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(87, 7, 141, 0.25);
  border-color: transparent;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.product-description {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 32px;
  flex-grow: 1;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 32px;
  border-top: 1px solid var(--bg-gray);
  padding-top: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.feature-item i {
  color: var(--primary-light);
  font-size: 0.85rem;
  background: rgba(87, 7, 141, 0.08);
  /* faint purple bg for icon */
  padding: 6px;
  border-radius: 50%;
}

.product-actions {
  display: flex;
  gap: 12px;
}

.product-actions button,
.product-actions a {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.product-btn {
  background: var(--bg-gray);
  color: var(--text-dark);
}

.product-btn:hover {
  background: #e2e8f0;
}

.notify-btn {
  background: transparent;
  border: 2px solid var(--primary-light) !important;
  color: var(--primary-light) !important;
}

.notify-btn:hover {
  background: var(--primary-light) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(87, 7, 141, 0.2);
}

.btn-disabled {
  background: #f1f5f9 !important;
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
}

/* Badge Cards */
.coming-soon-card {
  background: #ffffff;
  position: relative;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.02) 10px,
      rgba(0, 0, 0, 0.02) 20px);
  pointer-events: none;
}

.product-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  background: #eff6ff;
  border-radius: 20px;
  color: #3b82f6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-status.coming-soon {
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  background: #fffbeb;
  border-radius: 12px;
}

.product-status.available {
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  background: #ecfdf5;
  border-radius: 12px;
}


/* Responsiveness */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
    margin-top: 40px;
  }

  .hero-text {
    text-align: center !important;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* Section Common */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-badge {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(87, 7, 141, 0.1);
  border-radius: 20px;
}

.section-title {
  font-size: 2.75rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
}