/* ==========================================================================
   هلدینگ شایلی - Shaili Holding Industrial Hero Section
   Inspired by Luxury Brutalist & High-Tech Industrial Design
   ========================================================================== */

:root {
  --color-bg-dark: #070a0f;
  --color-gold-primary: #dfb142;
  --color-gold-glow: #f0c355;
  --color-gold-dark: #b88b22;
  --color-gold-muted: rgba(223, 177, 66, 0.22);
  --color-text-white: #ffffff;
  --color-text-gray: #b8c0cc;
  --color-text-dim: #7d8799;
  --color-glass-bg: rgba(14, 18, 26, 0.65);
  --color-glass-border: rgba(223, 177, 66, 0.25);
  
  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', 'Fira Code', monospace;
  --font-display: 'Cinzel', 'Syne', sans-serif;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --slide-duration: 6500ms;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  font-family: var(--font-persian);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Hero Container
   ========================================================================== */
.shaili-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 740px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.3s var(--transition-smooth), visibility 1.3s var(--transition-smooth);
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.92) contrast(1.04);
}

.slide-item.active .slide-bg-img {
  transform: scale(1.0);
}

/* Overlays & Atmosphere */
.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to left, rgba(5, 8, 14, 0.88) 0%, rgba(5, 8, 14, 0.5) 48%, rgba(5, 8, 14, 0.25) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.1) 0%, rgba(5, 8, 13, 0.65) 75%, rgba(4, 6, 10, 0.95) 100%),
    linear-gradient(to bottom, rgba(5, 7, 12, 0.72) 0%, transparent 22%, transparent 60%, rgba(4, 6, 10, 0.92) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Watermark Outline Typography */
.hero-watermark {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.watermark-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 8.8rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(223, 177, 66, 0.13);
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.8s ease, transform 1s var(--transition-smooth);
}

/* Canvas Floating Particles Layer */
#ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* Blueprint Grid Crosshairs Overlay */
.hero-blueprint-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0.35;
  background-image: 
    linear-gradient(to right, rgba(223, 177, 66, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(223, 177, 66, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ==========================================================================
   Top Navigation Navbar (Cleaned: Logo + Menu + Contact Button)
   ========================================================================== */
.hero-navbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5vw 0 5vw;
  width: 100%;
}

/* Right: Brand Monogram & Title */
.brand-monogram {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text-white);
  transition: opacity 0.3s ease;
}

.brand-monogram:hover {
  opacity: 0.92;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--color-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-gold-primary);
  background: rgba(10, 14, 22, 0.88);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 0 18px rgba(223, 177, 66, 0.22);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--color-gold-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Center: Main Navigation Menu */
.main-nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  background: rgba(14, 18, 26, 0.55);
  backdrop-filter: blur(12px);
  padding: 10px 28px;
  border-radius: 40px;
  border: 1px solid rgba(223, 177, 66, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #c4cddb;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold-primary);
  box-shadow: 0 0 8px var(--color-gold-primary);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-gold-glow);
}

/* Left: Contact CTA Button */
.header-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-contact-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-gold-primary);
  color: #0b0f17;
  padding: 11px 24px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(223, 177, 66, 0.32);
}

.btn-contact-header:hover {
  background: #f0c95d;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 177, 66, 0.5);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(223, 177, 66, 0.3);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background: var(--color-gold-primary);
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Content Area (RTL Right Aligned)
   ========================================================================== */
.hero-main-content {
  position: relative;
  z-index: 10;
  padding: 0 5vw;
  margin-top: auto;
  margin-bottom: 20px;
  max-width: 1080px;
  width: 100%;
}

/* Pre-heading Subtitle */
.hero-pre-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: #cfd6e3;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}

.hero-pre-heading::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold-primary);
}

/* Giant Headline */
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--color-text-white);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.6);
}

.hero-title .title-accent {
  display: inline-block;
  color: var(--color-gold-primary);
  background: linear-gradient(135deg, #f7d67c 0%, #dfb142 50%, #b8861e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(223, 177, 66, 0.3));
}

.hero-title .gold-dot {
  color: var(--color-gold-primary);
  -webkit-text-fill-color: var(--color-gold-primary);
}

/* Description Text with Right Accent Border */
.hero-description-wrap {
  position: relative;
  max-width: 700px;
  padding-right: 20px;
  margin-bottom: 38px;
}

.hero-description-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 3.5px;
  background: linear-gradient(to bottom, var(--color-gold-primary), rgba(223, 177, 66, 0.15));
  border-radius: 2px;
}

.hero-description {
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.88;
  color: #cfd7e6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Action Buttons Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Primary Chamfered Button (Gold) */
.btn-primary-chamfer {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--color-gold-primary);
  color: #0a0d14;
  padding: 15px 32px;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: all 0.35s var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(223, 177, 66, 0.35);
  cursor: pointer;
  border: none;
  overflow: hidden;
}

.btn-primary-chamfer:hover {
  background: #ecd077;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(223, 177, 66, 0.5);
  color: #000000;
}

.btn-primary-chamfer .btn-icon {
  display: inline-flex;
  transform: rotate(180deg); /* flips slant arrow for RTL */
  transition: transform 0.3s ease;
}

.btn-primary-chamfer:hover .btn-icon {
  transform: rotate(180deg) translate(-3px, -3px);
}

/* Secondary Button (Dark Glassmorphism) */
.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 18, 26, 0.75);
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(223, 177, 66, 0.35);
  backdrop-filter: blur(14px);
  transition: all 0.35s var(--transition-smooth);
  cursor: pointer;
}

.btn-secondary-glass:hover {
  background: rgba(223, 177, 66, 0.16);
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 24px rgba(223, 177, 66, 0.25);
  color: var(--color-gold-glow);
  transform: translateY(-2px);
}

.btn-secondary-glass svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.4s ease;
}

.btn-secondary-glass:hover svg {
  transform: rotate(45deg);
}

/* ==========================================================================
   Slider Controls & Bottom Navigation Bar
   ========================================================================== */
.hero-slider-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw 34px 5vw;
  width: 100%;
}

/* Counter & Progress Track */
.slider-progress-block {
  display: flex;
  align-items: center;
  gap: 24px;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold-primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.slide-counter .current-idx {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
}

.slide-counter .total-idx {
  color: var(--color-text-dim);
  font-size: 1.05rem;
}

.progress-track {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.progress-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: var(--color-gold-primary);
  box-shadow: 0 0 8px var(--color-gold-primary);
  transition: width 0.1s linear;
}

/* Slide Tabs / Dots with Titles */
.slider-tabs-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-tab-btn {
  background: none;
  border: none;
  color: #8c96a8;
  font-family: var(--font-persian);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-tab-btn::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a5464;
  transition: all 0.3s ease;
}

.slider-tab-btn.active {
  color: #ffffff;
}

.slider-tab-btn.active::before {
  background: var(--color-gold-primary);
  box-shadow: 0 0 10px var(--color-gold-primary);
  transform: scale(1.3);
}

.slider-tab-btn:hover {
  color: var(--color-gold-glow);
}

/* Prev / Next Arrows */
.slider-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(223, 177, 66, 0.25);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--transition-smooth);
}

.arrow-btn:hover {
  background: var(--color-gold-primary);
  border-color: var(--color-gold-primary);
  color: #0b0f17;
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(223, 177, 66, 0.35);
}

.arrow-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-list {
    gap: 20px;
    padding: 8px 18px;
  }
  .nav-link {
    font-size: 0.88rem;
  }
}

@media (max-width: 992px) {
  .main-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(7, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-gold-primary);
    padding: 80px 24px 30px;
    transition: right 0.4s var(--transition-smooth);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: none;
    backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .slider-tabs-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .shaili-hero {
    height: auto;
    min-height: 100vh;
    padding-bottom: 20px;
  }
  .hero-navbar {
    padding: 20px 4vw 0 4vw;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  .btn-contact-header {
    padding: 9px 16px;
    font-size: 0.85rem;
  }
  .hero-main-content {
    padding: 24px 4vw;
    margin-top: 15px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary-chamfer, .btn-secondary-glass {
    justify-content: center;
    width: 100%;
  }
  .hero-slider-bar {
    padding: 10px 4vw 20px 4vw;
  }
  .progress-track {
    width: 80px;
  }
}
