/* ==========================================================================
   Hero Section Slider Styles
   Matching design image exactly with luxury curved emerald & gold overlay
   ========================================================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-deep);
  padding-top: 88px; /* Offset for fixed header */
}

/* Slider Track & Slides */
.hero-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.04);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  animation: heroKenBurns 18s ease-out infinite alternate;
}

@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Base Ambient Overlays */
.hero-ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(5, 22, 18, 0.2) 0%, rgba(5, 22, 18, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Curved Emerald Overlay on Right (as seen in design image) */
.hero-curved-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 58%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(260deg,
    rgba(6, 26, 21, 0.98) 0%,
    rgba(7, 32, 26, 0.96) 50%,
    rgba(7, 32, 26, 0.90) 75%,
    rgba(7, 32, 26, 0.0) 100%);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}

@media (max-width: 1024px) {
  .hero-curved-overlay {
    width: 100%;
    clip-path: none;
    background: linear-gradient(180deg,
      rgba(6, 26, 21, 0.4) 0%,
      rgba(7, 32, 26, 0.92) 50%,
      rgba(6, 26, 21, 0.99) 100%);
  }
}

/* Golden Contour Arc Line (Separating image and green overlay) */
.hero-gold-contour {
  position: absolute;
  top: -10%;
  bottom: -10%;
  right: 48%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(229, 190, 117, 0.2) 15%,
    rgba(201, 155, 83, 0.8) 50%,
    rgba(229, 190, 117, 0.9) 75%,
    transparent 100%);
  box-shadow: 0 0 25px rgba(201, 155, 83, 0.6), 0 0 50px rgba(201, 155, 83, 0.3);
  transform: rotate(-8deg);
  z-index: 4;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-gold-contour {
    display: none;
  }
}

/* Islamic Geometric Arch Pattern Overlay on Right Edge */
.hero-islamic-pattern {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 280px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.14;
  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%3Cpath d='M30 0 L45 15 L30 30 L15 15 Z M30 30 L45 45 L30 60 L15 45 Z M0 30 L15 15 L30 30 L15 45 Z M60 30 L45 15 L30 30 L45 45 Z' fill='none' stroke='%23e5be75' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: right top;
}

/* Bottom Left Islamic Arch Accent Motif (as in design image) */
.hero-bottom-left-motif {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 240px;
  height: 220px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(45deg, rgba(7, 32, 26, 0.92) 0%, transparent 80%);
  clip-path: ellipse(80% 90% at 0% 100%);
  border-top-right-radius: 100%;
}

.hero-bottom-left-motif::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(201, 155, 83, 0.5);
  border-right: 2px solid rgba(201, 155, 83, 0.5);
  border-top-right-radius: 120px;
  box-shadow: 0 0 18px rgba(201, 155, 83, 0.35);
}

/* Hero Content Area */
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding: 60px 24px;
  display: flex;
  justify-content: flex-start; /* Aligns to RIGHT in RTL */
  direction: rtl;
}

.hero-content-block {
  max-width: 620px;
  margin-right: 0;
  margin-left: auto; /* Ensures content stays strictly on the right side */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  direction: rtl;
  animation: heroContentFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroContentFade {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge at top of hero */
.hero-top-badge {
  margin-bottom: 24px;
}

/* Main Lyon Font Heading */
.hero-main-title {
  font-family: var(--font-heading) !important;
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.18;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
  .hero-main-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 640px) {
  .hero-main-title {
    font-size: 2.35rem;
  }
}

/* Subtitle: ديكورات • دهانات • ترميمات */
.hero-services-tags {
  font-family: var(--font-heading) !important;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text-cream);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .hero-services-tags {
    font-size: 1.35rem;
  }
}

.hero-services-tags .tag-bullet {
  color: var(--primary-gold);
  margin: 0 10px;
  font-size: 1.2rem;
}

/* Diamond Divider in Hero */
.hero-diamond-divider {
  margin: 18px 0;
}

/* Hero Tagline: فخامة تُصنع بإتقان في الرياض */
.hero-tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 34px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }
}

/* Hero Action Buttons */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.hero-btn-secondary {
  font-size: 1.1rem;
  color: var(--text-white);
  gap: 8px;
}

.hero-btn-secondary:hover {
  color: var(--gold-light);
}

/* Slider Controls (Bottom Right - Exactly as in design image) */
.hero-controls-bar {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 768px) {
  .hero-controls-bar {
    right: 20px;
    bottom: 24px;
    gap: 16px;
  }
}

/* Pagination Dots */
.hero-dots-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(229, 190, 117, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-dot.is-active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Hexagonal Arrow Buttons */
.hero-arrows-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow-btn {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--gold-gradient);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: none;
  border-radius: 0 !important;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: var(--transition-smooth);
}

.hero-arrow-btn::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: rgba(7, 32, 26, 0.88);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  z-index: 1;
  transition: var(--transition-smooth);
}

.hero-arrow-btn svg {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.hero-arrow-btn:hover::before {
  background: transparent;
}

.hero-arrow-btn:hover {
  color: #071f19;
  transform: scale(1.08);
  filter: drop-shadow(0 6px 18px rgba(201, 155, 83, 0.6));
}

/* Subtle Progress Bar */
.hero-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 20;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px var(--gold-glow);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Hero SVG Decor Layer - Luxury Architectural & Islamic Geometry
   ========================================================================== */
.hero-svg-shapes-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.hero-svg-item {
  position: absolute;
  pointer-events: none;
}

/* 1. Rotating Sacred Islamic 8-Pointed Star Rosette */
.hero-svg-star-wrapper {
  top: 14%;
  left: 20%;
  width: 230px;
  height: 230px;
  opacity: 0.68;
  animation: rotateStarSlow 100s linear infinite;
  filter: drop-shadow(0 0 20px rgba(201, 155, 83, 0.35));
}

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

/* 2. Floating 3D Architectural Isometric Hexagonal Polyhedron */
.hero-svg-polyhedron-wrapper {
  bottom: 14%;
  left: 30%;
  width: 195px;
  height: 195px;
  opacity: 0.72;
  animation: floatPolySlow 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(201, 155, 83, 0.4));
}

@keyframes floatPolySlow {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-16px) rotate(6deg) scale(1.04); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* 3. Parametric Flowing Architectural Waves (Iso-Curves) */
.hero-svg-waves-wrapper {
  top: 36%;
  left: 0;
  width: 600px;
  height: 320px;
  opacity: 0.6;
  animation: wavePulseSlow 8s ease-in-out infinite alternate;
}

@keyframes wavePulseSlow {
  0% { transform: scale(1) translateY(0); opacity: 0.45; }
  100% { transform: scale(1.05) translateY(-12px); opacity: 0.72; }
}

/* 4. Floating Luxury Hexagonal Accent Glyphs */
.hero-svg-hex-glyph-1 {
  top: 16%;
  right: 48%;
  width: 58px;
  height: 58px;
  opacity: 0.65;
  animation: floatGlyph1 7s ease-in-out infinite alternate;
}

@keyframes floatGlyph1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(20deg); }
}

.hero-svg-hex-glyph-2 {
  bottom: 22%;
  right: 45%;
  width: 46px;
  height: 46px;
  opacity: 0.55;
  animation: floatGlyph2 9s ease-in-out infinite alternate;
}

@keyframes floatGlyph2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(16px) rotate(-18deg); }
}

/* 5. Golden Diamond Sparkles */
.hero-sparkle {
  color: var(--gold-light);
  font-size: 1.4rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(229, 190, 117, 0.8), 0 0 24px rgba(201, 155, 83, 0.6);
  animation: sparkleTwinkle 3.5s ease-in-out infinite;
}

.hero-sparkle-1 {
  top: 12%;
  right: 14%;
  animation-delay: 0s;
}

.hero-sparkle-2 {
  top: 40%;
  right: 50%;
  font-size: 1.15rem;
  animation-delay: 1.2s;
}

.hero-sparkle-3 {
  bottom: 28%;
  left: 18%;
  font-size: 1.3rem;
  animation-delay: 2.4s;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* 6. Ruler Coordinate Accent */
.hero-svg-ruler {
  top: 35px;
  left: 60px;
  width: 150px;
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .hero-svg-star-wrapper {
    left: 6%;
    top: 6%;
    width: 140px;
    height: 140px;
    opacity: 0.35;
  }
  .hero-svg-polyhedron-wrapper {
    left: 8%;
    bottom: 6%;
    width: 120px;
    height: 120px;
    opacity: 0.4;
  }
  .hero-svg-waves-wrapper {
    display: none;
  }
  .hero-svg-hex-glyph-1,
  .hero-svg-hex-glyph-2 {
    display: none;
  }
}
