/* ==========================================================================
   Design System & Premium Theme for Awlad El Khouly Group
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-primary: #04060a;
  --bg-secondary: #080b11;
  --bg-card: #0c0f17;
  --bg-card-hover: #10141f;
  --bg-glass: rgba(4, 6, 10, 0.8);
  --gold: #e5c185;
  --gold-glow: rgba(229, 193, 133, 0.25);
  --gold-hover: #ffd599;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #6b7280;
  --white: #ffffff;
  --border-color: rgba(229, 193, 133, 0.15);
  
  /* Fonts */
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* Base Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ar);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@keyframes goldShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.text-gold,
.gold-glow-text,
.hero-tagline,
.section-subtitle,
.stat-num {
  background: linear-gradient(90deg, #b89765 0%, #f6d296 25%, #ffffff 50%, #f6d296 75%, #b89765 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--gold);
  animation: goldShine 6s linear infinite;
}

.text-gold {
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.35)) drop-shadow(0 0 6px rgba(229, 193, 133, 0.45));
}

.gold-glow-text {
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 10px rgba(229, 193, 133, 0.7));
  font-weight: 800;
}
.bg-gold { background-color: var(--gold); }

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(4, 6, 10, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo block matching screenshot */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.logo-box {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  text-align: right;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switch {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-switch:hover {
  color: var(--gold);
}

.btn-quote {
  background: var(--gold);
  color: var(--bg-primary);
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-quote:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 750px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: filter 0.3s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(4,6,10,0.2) 0%, rgba(4,6,10,0.9) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 950px;
  padding: 2rem;
}

.hero-tagline {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.35)) drop-shadow(0 0 8px rgba(229, 193, 133, 0.5));
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-meta-divider {
  width: 60px;
  height: 1px;
  background-color: var(--gold);
}

.hero-meta-text {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 700;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  padding: 0.9rem 2.2rem;
  font-weight: 800;
  border-radius: 4px;
  border: 1px solid var(--gold);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2.2rem;
  font-weight: 800;
  border-radius: 4px;
  border: 1px solid var(--gold);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* About Us Section */
.about-section {
  padding: 7rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-video-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.about-video-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(4, 6, 10, 0.8);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
  margin-left: 2px;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold);
}

.play-btn:hover svg {
  fill: var(--bg-primary);
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.35)) drop-shadow(0 0 8px rgba(229, 193, 133, 0.5));
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Stats Counter */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.35)) drop-shadow(0 0 8px rgba(229, 193, 133, 0.5));
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Sectors Section */
.sectors-section {
  padding: 7rem 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.sector-card {
  background-color: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: auto;
  flex: 0 1 calc(33.333% - 1.4rem);
  min-width: 290px;
}

.sector-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  background-color: var(--bg-card-hover);
}

.sector-img-wrapper {
  height: 270px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.sector-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.sector-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.sector-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.sector-btn {
  align-self: center;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.sector-card:hover .sector-btn {
  border-color: var(--gold);
  color: var(--gold);
}

/* Products Section */
.products-section {
  padding: 7rem 0 3.5rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.1);
  text-align: center;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 30px rgba(197, 168, 128, 0.15);
}

.product-img {
  height: 320px; /* Doubled height for large high-quality display */
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  padding: 1.8rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.products-btn-wrapper {
  text-align: center;
  margin-top: 3.5rem;
}

/* Capabilities Banner */
.capabilities-banner {
  padding: 3.5rem 0 7rem 0;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.95) 0%, rgba(8, 11, 17, 0.95) 100%), url('images/hero_background.png') no-repeat center center/cover;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.8rem;
  margin-top: 4rem;
}

.capability-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.2rem 1.2rem;
  background: rgba(12, 15, 23, 0.45);
  border: 1px solid rgba(229, 193, 133, 0.08);
  border-radius: 12px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.capability-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(229, 193, 133, 0.05), transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.capability-item:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 193, 133, 0.35);
  background: rgba(16, 20, 31, 0.85);
  box-shadow: 0 15px 35px rgba(229, 193, 133, 0.06);
}

.capability-item:hover::before {
  opacity: 1;
}

.capability-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(229, 193, 133, 0.06);
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px rgba(229, 193, 133, 0.1);
  z-index: 2;
}

.capability-item:hover .capability-icon {
  background: var(--gold);
  color: var(--bg-primary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(229, 193, 133, 0.35);
}

.capability-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  transition: var(--transition-fast);
  z-index: 2;
}

.capability-item:hover .capability-label {
  color: var(--gold-hover);
  text-shadow: 0 0 8px rgba(229, 193, 133, 0.2);
}

.capabilities-extra-text {
  margin-top: 4.5rem;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: right;
  white-space: pre-wrap;
  padding: 2.5rem 2rem;
  background: rgba(12, 15, 23, 0.6);
  border: 1px solid rgba(229, 193, 133, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.capabilities-extra-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Projects Section */
.projects-section {
  padding: 7rem 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

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

.project-img-wrapper {
  height: 180px;
  overflow: hidden;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 1.2rem;
  text-align: center;
}

.project-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.project-loc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Partners Section */
.partners-section {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.partners-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.partner-logo {
  max-height: 48px;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.partner-logo:hover {
  opacity: 1;
}

/* Footer Section */
footer {
  background-color: #020305;
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
  color: var(--white);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25px;
  height: 2px;
  background-color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.catalog-box {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.8rem;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.catalog-img {
  width: 45px;
  height: 55px;
  object-fit: cover;
}

.catalog-info h5 {
  font-size: 0.8rem;
  font-weight: 800;
}

.catalog-info span {
  font-size: 0.7rem;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* RFQ Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start for scrollability */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  overflow-y: auto; /* Added for scroll control */
  padding: 3rem 1rem; /* Added margin space top/bottom on mobile/desktop */
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  margin: auto; /* Centered in flexbox with scroll safety */
}

.modal-header {
  background: var(--bg-secondary);
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

textarea.form-input {
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 0.85rem;
  font-weight: 800;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* Animations & Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Staggered Card Reveals */
.sector-card, .product-card, .project-card, .company-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              background-color 0.4s ease;
}

.sector-card.reveal-active, .product-card.reveal-active, .project-card.reveal-active, .company-card.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Card Hover Glow and Shine Sweep */
.sector-card:hover, .product-card:hover, .project-card:hover {
  transform: translateY(-10px) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 20px 40px rgba(197, 168, 128, 0.18), 0 0 1px var(--gold) !important;
}

.sector-img-wrapper, .product-img, .project-img-wrapper {
  position: relative;
  overflow: hidden;
}

.sector-img-wrapper::after, .product-img::after, .project-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: left 0.75s ease-in-out;
  z-index: 2;
  pointer-events: none;
}

.sector-card:hover .sector-img-wrapper::after,
.product-card:hover .product-img::after,
.project-card:hover .project-img-wrapper::after {
  left: 125%;
}

/* Card Hover Zoom Effect */
.sector-card .sector-img-wrapper img,
.product-card .product-img img,
.project-card .project-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sector-card:hover .sector-img-wrapper img,
.product-card:hover .product-img img,
.project-card:hover .project-img-wrapper img {
  transform: scale(1.08);
}

/* Smooth active menu tracking */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: var(--transition-smooth);
}

body.ltr .nav-link::after {
  right: auto;
  left: 0;
}

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

/* Parallax Effect on Hero */
.hero-section {
  background-attachment: fixed;
}

/* Scroll indicator on Hero */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  cursor: pointer;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
  0% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.mobile-only-quote {
  display: none;
}

/* Responsive updates */
@media (max-width: 992px) {
  /* Hide desktop header elements that overflow */
  .logo-text span {
    display: none !important;
  }
  
  .header-actions .btn-quote {
    display: none !important;
  }
  
  .mobile-only-quote {
    display: block !important;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Mobile Navigation Drawer */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0 !important;
    left: 0 !important;
  }

  body.rtl .nav-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: none;
  }

  body.rtl .nav-menu.active {
    left: 0 !important;
    right: 0 !important;
  }

  .nav-link {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-align: center;
    width: auto;
    padding: 0.5rem 1.5rem;
    border-bottom: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.18s; }
  .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.26s; }
  .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.34s; }
  .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.42s; }

  /* Responsive Header Components */
  .header-container {
    padding: 0.5rem 1.2rem;
  }

  .logo-box {
    width: 38px;
    height: 38px;
  }

  .logo-box svg {
    width: 20px;
    height: 20px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-text span {
    display: none !important; /* redundant safeguard */
  }

  /* Responsive Hero */
  .hero-title {
    font-size: 3.8rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  /* Responsive Grids */
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-video-wrapper img {
    height: 260px;
  }

  .sector-card {
    flex: 0 1 calc(50% - 1rem);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .btn-quote {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .hero-btns button {
    width: 100%;
  }

  .stats-container {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .sector-card {
    flex: 0 1 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn-quote {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .modal-card {
    margin: 1rem;
  }

  .modal-body {
    padding: 1.2rem;
  }
}

/* Preloader Screen Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #04060a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  animation: preloaderContentIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-logo {
  display: inline-flex;
  margin-bottom: 1.5rem;
  animation: preloaderLogoPulse 2s ease-in-out infinite;
}

.preloader-title {
  font-family: var(--font-ar);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.preloader-subtitle {
  font-family: var(--font-ar);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.preloader-progress {
  width: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: preloaderProgressBar 2.2s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
  box-shadow: 0 0 8px var(--gold);
}

@keyframes preloaderContentIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(197, 168, 128, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(197, 168, 128, 0.4));
  }
}

@keyframes preloaderProgressBar {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ==========================================================================
   Brand Hub Diagram (Circular Mind Map / Radial Tree)
   ========================================================================== */

/* Container setup */
.brand-hub-container {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 0 auto;
  z-index: 5;
  animation: hubFadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hubFadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* SVG Connection Overlay */
.hub-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.conn-line {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-opacity: 0.8;
  stroke-dasharray: 6 4;
  animation: lineFlow 8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(229, 193, 133, 0.75)) drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
}

.orbit-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-opacity: 0.35;
  transform-origin: 250px 250px;
}

.orbit-ring.ring-1 {
  stroke-dasharray: 4 8;
  animation: spinClockwise 60s linear infinite;
}

.orbit-ring.ring-2 {
  stroke-dasharray: 6 12;
  animation: spinCounterClockwise 80s linear infinite;
}

/* Animations for Lines & Rings */
@keyframes lineFlow {
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Center Core Brand Card */
.hub-center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 15, 23, 0.95) 0%, rgba(6, 8, 12, 0.98) 100%);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 0 45px rgba(229, 193, 133, 0.15),
              inset 0 0 25px rgba(229, 193, 133, 0.08);
  transition: var(--transition-smooth);
}

.hub-center-node:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 0 55px rgba(229, 193, 133, 0.3),
              inset 0 0 35px rgba(229, 193, 133, 0.15);
  border-color: var(--gold-hover);
}

/* Typography inside Central Node */
.hub-since {
  font-family: var(--font-ar);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.85;
}

.hub-title {
  font-family: var(--font-ar);
  font-size: 2.15rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hub-subtitle {
  font-family: var(--font-ar);
  font-size: 1.08rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.hub-tagline {
  font-family: var(--font-ar);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(229, 193, 133, 0.15);
  width: 85%;
}

/* Satellite Partner Nodes */
.hub-node {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.7rem;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(229, 193, 133, 0.2);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: max-content;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
              inset 0 0 15px rgba(229, 193, 133, 0.05);
}

/* Node layout mapping coordinates:
   SVG endpoints are updated to match tighter spacing (20% and 80%)
*/
.node-top-left {
  top: 18%;
  left: 18%;
  transform: translate(-50%, -50%);
}
.node-top-right {
  top: 18%;
  left: 82%;
  transform: translate(-50%, -50%);
}
.node-bottom-left {
  top: 82%;
  left: 18%;
  transform: translate(-50%, -50%);
}
.node-bottom-right {
  top: 82%;
  left: 82%;
  transform: translate(-50%, -50%);
}

/* Hovers on Satellite Nodes */
.hub-node:hover {
  border-color: var(--gold);
  background: rgba(16, 20, 31, 0.9);
  box-shadow: 0 0 25px rgba(229, 193, 133, 0.25);
}

.node-top-left:hover { transform: translate(-50%, -50%) scale(1.08); }
.node-top-right:hover { transform: translate(-50%, -50%) scale(1.08); }
.node-bottom-left:hover { transform: translate(-50%, -50%) scale(1.08); }
.node-bottom-right:hover { transform: translate(-50%, -50%) scale(1.08); }

/* Node Content Styling */
.node-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(229, 193, 133, 0.08);
  border: 1px solid rgba(229, 193, 133, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.hub-node:hover .node-icon-wrapper {
  background: var(--gold);
  color: var(--bg-primary);
  transform: rotate(360deg);
  box-shadow: 0 0 12px rgba(229, 193, 133, 0.5);
}

.node-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.node-text {
  font-family: var(--font-ar);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.hub-node:hover .node-text {
  color: var(--gold-hover);
  text-shadow: 0 0 8px rgba(229, 193, 133, 0.3);
}

/* ==========================================================================
   Responsive Adaptation for Mobile and Tablets
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero-content {
    padding: 1rem 0.5rem !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .brand-hub-container {
    width: 90vw;
    height: 90vw;
    max-width: 340px;
    max-height: 340px;
    margin: 0 auto;
    display: block;
    position: relative;
  }

  .hub-connections-svg {
    display: block !important;
    width: 100%;
    height: 100%;
  }

  /* Center node orbital scaling for mobile screens */
  .hub-center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 48.5%;
    height: 48.5%;
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 0 25px rgba(229, 193, 133, 0.15),
                inset 0 0 15px rgba(229, 193, 133, 0.08);
  }

  .hub-center-node:hover {
    transform: translate(-50%, -50%) scale(1.03) !important;
  }

  .hub-since {
    font-size: 2.6vw;
    margin-bottom: 0.1rem;
  }

  .hub-title {
    font-size: 5.8vw;
    margin-bottom: 0.1rem;
  }

  .hub-subtitle {
    font-size: 2.9vw;
    margin-bottom: 0.1rem;
  }

  .hub-tagline {
    font-size: 2.6vw;
    padding-top: 0.2rem;
    width: 85%;
  }

  @media (min-width: 380px) {
    .hub-since { font-size: 0.66rem; }
    .hub-title { font-size: 1.38rem; }
    .hub-subtitle { font-size: 0.78rem; }
    .hub-tagline { font-size: 0.78rem; }
    .hub-center-node {
      width: 163px;
      height: 163px;
    }
  }

  /* Satellite Nodes become compact orbital cards on mobile */
  .hub-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.2rem;
    background: rgba(8, 11, 17, 0.85);
    border: 1.5px solid rgba(229, 193, 133, 0.15);
    border-radius: 12px;
    width: 25vw;
    max-width: 86px;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
  }

  .node-top-left {
    top: 14%;
    left: 14%;
    transform: translate(-50%, -50%) !important;
  }

  .node-top-right {
    top: 14%;
    left: 86%;
    transform: translate(-50%, -50%) !important;
  }

  .node-bottom-left {
    top: 86%;
    left: 14%;
    transform: translate(-50%, -50%) !important;
  }

  .node-bottom-right {
    top: 86%;
    left: 86%;
    transform: translate(-50%, -50%) !important;
  }

  .hub-node:hover {
    transform: translate(-50%, -50%) scale(1.05) !important;
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(229, 193, 133, 0.25);
  }

  .node-icon-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(229, 193, 133, 0.05);
    border: 1px solid rgba(229, 193, 133, 0.2);
  }

  .node-icon-wrapper svg {
    width: 16px;
    height: 16px;
  }

  .node-text {
    font-size: 2.6vw;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }

  @media (min-width: 380px) {
    .node-text { font-size: 0.86rem; }
    .hub-node { width: 86px; }
  }
}

/* Companies Section in sectors.html */
.companies-section {
  padding: 8rem 0 5rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  margin-top: 4rem;
}

.company-card {
  background: radial-gradient(circle at 50% 0%, rgba(229, 193, 133, 0.03) 0%, rgba(12, 15, 23, 0.6) 100%);
  border: 1px solid rgba(229, 193, 133, 0.12);
  border-radius: 20px;
  padding: 4rem 2rem 3.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.company-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 15%, var(--gold) 50%, transparent 85%);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.company-card:hover {
  transform: translateY(-12px);
  border-color: rgba(229, 193, 133, 0.45);
  background: radial-gradient(circle at 50% 0%, rgba(229, 193, 133, 0.12) 0%, rgba(16, 20, 31, 0.95) 100%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 193, 133, 0.08);
}

.company-card:hover::after {
  transform: scaleX(1);
}

.company-card-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(229, 193, 133, 0.12);
  transition: var(--transition-smooth);
  user-select: none;
  font-family: var(--font-en);
}

.company-card:hover .company-card-num {
  -webkit-text-stroke: 1px rgba(229, 193, 133, 0.5);
  transform: translateY(-2px);
}

.company-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 1px solid rgba(229, 193, 133, 0.2);
  background: linear-gradient(135deg, rgba(229, 193, 133, 0.02) 0%, rgba(229, 193, 133, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 2.2rem auto;
  position: relative;
  transition: var(--transition-smooth);
}

.company-icon-box::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 23px;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.company-card:hover .company-icon-box {
  border-color: var(--gold);
  transform: translateY(-5px) scale(1.05) rotate(5deg);
  box-shadow: 0 12px 25px rgba(229, 193, 133, 0.3);
  color: var(--bg-primary);
  background: var(--gold);
}

.company-card:hover .company-icon-box::before {
  opacity: 0.6;
}

.company-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.2rem;
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
}

.company-card:hover .company-name {
  color: var(--gold-hover);
  text-shadow: 0 0 12px rgba(229, 193, 133, 0.3);
}

.company-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  transition: var(--transition-fast);
}

.company-card:hover .company-desc {
  color: var(--white);
}

.company-card-arrow {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(229, 193, 133, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0;
  transform: translateX(15px);
  transition: var(--transition-smooth);
}

.company-card:hover .company-card-arrow {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-primary);
}

/* RTL specific adjustments for arrow */
body.rtl .company-card-arrow {
  left: auto;
  right: 2rem;
  transform: translateX(-15px);
}

body.rtl .company-card:hover .company-card-arrow {
  transform: translateX(0);
}

body.rtl .company-card-arrow svg {
  transform: scaleX(-1);
}

body.rtl .company-card-num {
  right: auto;
  left: 2rem;
}

@media (max-width: 1200px) {
  .companies-grid {
    gap: 1.5rem;
  }
  .company-card {
    padding: 3.5rem 1.5rem 3rem 1.5rem;
  }
}

@media (max-width: 992px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .companies-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .company-card {
    padding: 3rem 1.5rem 2.8rem 1.5rem;
  }
}

/* Detail Page (segal-details.html) Styles */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.detail-gallery-wrapper {
  position: relative;
}

.main-image-container {
  width: 100%;
  height: 480px;
  border-radius: 16px;
  border: 1px solid rgba(229, 193, 133, 0.15);
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.main-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.main-image-container:hover .main-featured-image {
  transform: scale(1.04);
}

.gallery-shine-effect {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: left 0.75s ease-in-out;
}

.main-image-container:hover .gallery-shine-effect {
  left: 125%;
}

.thumbnails-container {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.segal-thumb {
  width: 110px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  background: var(--bg-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.segal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.segal-thumb:hover, .segal-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(229, 193, 133, 0.25);
  transform: translateY(-3px);
  opacity: 1;
}

.detail-section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.detail-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.specs-block {
  margin-top: 2.5rem;
}

.specs-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.6rem;
  display: inline-block;
}

.specs-table {
  background: rgba(12, 15, 23, 0.55);
  border: 1px solid rgba(229, 193, 133, 0.08);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.specs-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  text-align: start;
}

.spec-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: end;
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .main-image-container {
    height: 380px;
  }
}

@media (max-width: 576px) {
  .detail-section-title {
    font-size: 2rem;
  }
  .detail-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .detail-actions > * {
    width: 100%;
    text-align: center;
  }
  .specs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 1.2rem;
  }
  .spec-value {
    text-align: start;
  }
}

/* ==========================================================================
   Premium Industrial & Engineering Grid Background
   ========================================================================== */
.premium-industrial-bg {
  background-color: var(--bg-secondary) !important;
  /* Subtly combined radial gold spotlights and engineering draft blueprint lines */
  background-image: 
    linear-gradient(rgba(229, 193, 133, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 193, 133, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 15% 15%, rgba(229, 193, 133, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(229, 193, 133, 0.06) 0%, transparent 60%) !important;
  background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100% !important;
  background-repeat: repeat, repeat, no-repeat, no-repeat !important;
  background-attachment: fixed !important;
  position: relative;
}

/* Allow the beautiful body background to show through sections */
.premium-industrial-bg .companies-section,
.premium-industrial-bg .sectors-section,
.premium-industrial-bg .detail-section {
  background-color: transparent !important;
  position: relative;
  z-index: 2;
}

/* iOS App-Style Floating Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 64px;
  background: rgba(12, 17, 28, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(229, 193, 133, 0.15);
  border-radius: 20px;
  z-index: 9999;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 193, 133, 0.05);
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Add padding bottom to body so content doesn't get covered by the bottom nav */
  body {
    padding-bottom: 90px !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  width: 60px;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: all 0.25s ease;
}

.bottom-nav-item.active {
  color: var(--gold);
}

.bottom-nav-item.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px var(--gold));
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.bottom-nav-item.whatsapp-item {
  color: #25d366;
}

.bottom-nav-item.whatsapp-item svg {
  filter: drop-shadow(0 2px 5px rgba(37, 211, 102, 0.3));
}

.bottom-nav-item.whatsapp-item:hover svg {
  transform: scale(1.1) translateY(-2px);
}

/* WhatsApp Product Inquiry Toast & Modal Styles */
.inquiry-toast {
  position: fixed;
  bottom: 30px;
  right: -450px; /* Initially hidden offscreen */
  width: 380px;
  max-width: calc(100vw - 60px);
  background: rgba(12, 15, 23, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(229, 193, 133, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 193, 133, 0.1);
  z-index: 9999;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.inquiry-toast.show {
  right: 30px;
  opacity: 1;
}

body.rtl .inquiry-toast {
  right: auto;
  left: -450px;
}

body.rtl .inquiry-toast.show {
  left: 30px;
  right: auto;
  opacity: 1;
}

.inquiry-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.inquiry-toast-title {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inquiry-toast-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.inquiry-toast-close:hover {
  color: var(--gold);
}

.inquiry-toast-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.inquiry-toast-body strong {
  color: #fff;
}

.inquiry-toast-btn {
  background: var(--gold);
  color: #04060a;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(229, 193, 133, 0.25);
}

.inquiry-toast-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(229, 193, 133, 0.4);
}

/* Specific styling for the WhatsApp Inquiry Modal */
.whatsapp-modal-header {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  color: #fff;
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-modal-header .modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.whatsapp-modal-header .modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.3s;
}

.whatsapp-modal-header .modal-close:hover {
  color: #fff;
}

.whatsapp-btn-submit {
  width: 100%;
  background: #25d366;
  color: #fff;
  padding: 0.85rem;
  font-weight: 800;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.whatsapp-btn-submit:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Mobile Adjustments for Toast */
@media (max-width: 768px) {
  .inquiry-toast {
    bottom: 90px; /* Clear the mobile bottom nav bar */
    right: 50% !important;
    left: auto !important;
    transform: translateX(50%) translateY(150px);
    width: calc(100vw - 32px);
    max-width: 400px;
    opacity: 0;
  }
  
  .inquiry-toast.show {
    right: 50% !important;
    left: auto !important;
    transform: translateX(50%) translateY(0);
    opacity: 1;
  }
  
  body.rtl .inquiry-toast {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(150px);
  }
  
  body.rtl .inquiry-toast.show {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}




