:root {
  --polosys-navy: #000c26;
  --polosys-blue: #00609b;
  --polosys-ochre: #a96f18;
  --polosys-purple: #822981;
  --polosys-white: #ffffff;
  --polosys-light-gray: #f8f8f8;
  --polosys-font: 'Inter', 'Segoe UI', Roboto, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glow-blue: #00d2ff;
}

/* RTL / Arabic Text Joining Fix */
html[lang="ar"] body.rtl *,
html[lang="ar"] body.rtl h1,
html[lang="ar"] body.rtl h2,
html[lang="ar"] body.rtl h3,
html[lang="ar"] body.rtl h4,
html[lang="ar"] body.rtl .black_hed,
html[lang="ar"] body.rtl .white_hed,
html[lang="ar"] body.rtl .inr_banner .black_hed {
    letter-spacing: normal !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--polosys-font) !important;
  background-color: var(--polosys-white);
  color: var(--polosys-navy);
  line-height: 1.6;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 25px 0;
}

.main-header.scrolled {
  background: rgba(0, 12, 38, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo img {
  height: 45px;
  transition: height 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--polosys-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

.nav-links li a:hover {
  opacity: 0.7;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--polosys-navy);
  min-width: 250px;
  padding: 20px 0;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  border-top: 3px solid var(--polosys-blue);
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 12px 25px;
  display: block;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  background: var(--polosys-blue) !important;
  color: var(--polosys-white) !important;
}

.dropdown-menu li a:last-child {
  border-bottom: none;
}

/* On desktop, we hide logo and nav-links in scrolled state for a compact toolbar view */
@media (min-width: 1025px) {
  .main-header.scrolled .logo,
  .main-header.scrolled .nav-links {
    display: none !important;
  }
  
  .main-header.scrolled .header-container {
    justify-content: flex-end !important;
  }
  
  .main-header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 15px 40px !important;
    transition: all 0.3s ease;
  }
}

/* On mobile, we ALWAYS want a complete navbar (Logo + Right Tools) */
@media (max-width: 1024px) {
  .main-header.scrolled {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
  }

  .main-header.scrolled .logo {
    display: block !important;
  }

  .main-header.scrolled .logo img {
    height: 35px !important;
  }

  .main-header.scrolled .header-container {
    justify-content: space-between !important;
  }
}


.header-right-tools {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 25px !important;
}

.tool-icon {
  color: var(--polosys-white) !important;
  font-size: 22px !important;
  cursor: pointer;
  display: inline-block !important;
}

/* Language Switcher */
.lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.lang-switch {
  color: var(--polosys-white) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  opacity: 0.7;
}

.lang-switcher span {
  color: var(--polosys-white);
  opacity: 0.3;
}

/* Hamburger Styles */
.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--polosys-white) !important;
  transition: all 0.3s ease;
}

.main-header {
  z-index: 1000;
}

/* Remove unstable mix-blend-mode and use target-locked colors */
.main-header .tool-icon {
  color: var(--polosys-white) !important;
  transition: color 0.4s ease;
}

.hamburger span {
  background: var(--polosys-white);
  transition: background 0.4s ease;
}

/* Intelligent Icon Flip for Light Sections */
.main-header.over-light-section .tool-icon, 
.main-header.over-light-section .lang-switch,
.main-header.over-light-section .lang-switcher span,
.over-light-section .tool-icon {
  color: var(--polosys-navy) !important;
}

.main-header.over-light-section .hamburger span,
.main-header.scrolled .hamburger span,
.over-light-section .hamburger span {
  background: var(--polosys-navy) !important;
}

/* Keep text pure white on the dark scrolled background */
.main-header.scrolled .nav-links li a {
  color: var(--polosys-white) !important;
}

.main-header.scrolled .header-right-tools {
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.main-header.scrolled .logo img {
  height: 40px; /* Slightly more compact but clear */
}

/* Sidebar Menu */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--polosys-white);
  z-index: 2000;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 60px 40px;
  box-shadow: -10px 0 50px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.sidebar-menu.open {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,12,38,0.8);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(5px);
}

.sidebar-overlay.visible {
  display: block;
}

.sidebar-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 40px;
  color: var(--polosys-navy);
  cursor: pointer;
  line-height: 1;
}

.sidebar-logo {
  height: 45px;
  margin-bottom: 50px;
  /* Actual logo shown without color filter */
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links > li {
  margin-bottom: 25px;
}

.sidebar-links > li > a {
  font-size: 24px;
  font-weight: 700;
  color: var(--polosys-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-links > li > a:hover {
  color: var(--polosys-blue);
}

.side-sub-links {
  list-style: none;
  padding: 15px 0 0 20px;
  display: none;
}

.side-sub-links li {
  margin-bottom: 12px;
}

.side-sub-links li a {
  color: rgba(0,12,38,0.6);
  text-decoration: none;
  font-size: 16px;
}

.sidebar-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 30px;
}

.sidebar-footer p {
  color: rgba(0,12,38,0.4);
  font-size: 14px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: var(--polosys-navy);
  font-size: 20px;
}

body.no-scroll {
  overflow: hidden;
}

.SMALLTitle {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  display: block;
  margin-top: 2px;
}

/* --- Experience Section (Infosys Style) --- */
.experience-section {
  background: var(--polosys-blue);
  padding: 120px 0;
  color: var(--polosys-white);
  overflow: hidden;
  position: relative;
}

.side-indicators {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-indicators span {
  width: 25px;
  height: 2px;
  background: rgba(255,255,255,0.3);
}

.side-indicators span.active {
  background: var(--polosys-white);
  height: 4px;
}

/* --- Purple & Flipped Variations --- */
.purple-bg {
  background: var(--polosys-purple) !important;
}

.mirror-section .exp-grid {
  flex-direction: row-reverse;
}

.mirror-section .exp-right {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.light-purple-column {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 110%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

/* --- Next Section (Grid) --- */
.next-section {
  background: var(--polosys-white);
  padding: 100px 0;
  position: relative;
  color: var(--polosys-navy);
}

.next-section .section-title {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -3px;
  margin-bottom: 10px;
}

.next-section .section-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0.6;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.next-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-template-rows: 250px 250px;
  gap: 15px;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-item {
  position: relative;
  overflow: hidden;
  background: var(--polosys-light-gray);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.large-item {
  grid-row: span 2;
}

.grid-caption {
  position: absolute;
  bottom: 25px;
  left: 30px;
  color: var(--polosys-white);
  font-size: 24px;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.grid-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  z-index: 1;
}

@media (max-width: 1024px) {
  .next-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 300px);
  }
  .large-item { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  .next-section .section-title { font-size: 3rem; }
  .next-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .large-item { grid-column: span 1; }
  .grid-item { height: 350px; }
}

.exp-grid {
  display: flex;
  align-items: center;
  gap: 100px;
}

.exp-left {
  flex: 0 0 35%;
  position: relative;
  display: flex;
  justify-content: center;
}

.blue-column {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 110%;
  background: rgba(255, 255, 255, 0.1); /* Subtle white translucent pillar */
  z-index: 0;
}

/* --- Reveal Animations --- */
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(120px) scale(0.9);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: blur(10px);
}

.scroll-reveal-right.reveal-active {
  opacity: 1;
  transform: translateX(0) scale(1.05);
  filter: blur(0);
}

.exp-left img {
  width: auto;
  max-width: 100%;
  height: 480px; /* Refined height */
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(20px 20px 40px rgba(0,0,0,0.3)); /* Shadow for the cutout itself */
}

.exp-right {
  flex: 1;
}

.exp-top h2 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -3px;
}

.exp-top .subtitle {
  font-size: 1.6rem;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
  font-style: italic;
}

.exp-btn {
  display: inline-block;
  padding: 12px 60px;
  border: 1px solid var(--polosys-white);
  color: var(--polosys-white);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-bottom: 80px;
}

.exp-btn:hover {
  background: var(--polosys-white);
  color: var(--polosys-blue);
}

.exp-bottom-stats {
  display: flex;
  gap: 80px;
}

.exp-col h6 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 20px;
}

.exp-col .stat-text {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.25;
}

.view-link {
  color: var(--polosys-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 0.3s ease;
}

.view-link:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .exp-top h2 { font-size: 3rem; }
  .exp-grid { flex-direction: column; gap: 60px; }
  .exp-left { flex: 0 0 100%; order: 2; }
  .exp-right { order: 1; }
}

@media (max-width: 768px) {
  .exp-bottom-stats { flex-direction: column; gap: 40px; }
  .exp-top h2 { font-size: 2.5rem; }
}

#abt.pc_wrapper {
  background: #000c26 !important; /* Force true midnight navy background */
  background-image: linear-gradient(135deg, #001235 0%, #000c26 100%) !important;
  padding: 80px 0 !important; /* Reduced padding from 140px balance */
  position: relative;
  overflow: hidden;
  display: block;
}

#abt.pc_wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(47, 170, 188, 0.15) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.pc_wrapper .wrapper {
  position: relative;
  z-index: 1;
}

.wel_hed {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -2px !important;
  margin-bottom: 60px !important;
  color: var(--polosys-white) !important;
  text-align: center;
}

.pro_box {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 25px !important;
  margin-left: 0 !important;
  max-width: 1400px;
  margin: 0 auto !important;
}

/* --- Minimalist Product Grid (Cardless) --- */
.pro_box_item.card-3d {
  width: 220px !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  padding: 20px !important;
  text-align: center;
  transition: transform 0.6s ease, opacity 0.8s ease;
  position: relative;
  cursor: pointer;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-shadow: none !important;
  /* Initial state for scroll reveal */
  opacity: 0;
  transform: translateY(40px);
}

.pro_box_item.card-3d.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Sequential Staggered Delays for 1-by-1 Reveal with !important to bypass shorthand resets */
.pro_box_item.card-3d:nth-child(1) { transition-delay: 0.1s !important; }
.pro_box_item.card-3d:nth-child(2) { transition-delay: 0.3s !important; }
.pro_box_item.card-3d:nth-child(3) { transition-delay: 0.5s !important; }
.pro_box_item.card-3d:nth-child(4) { transition-delay: 0.7s !important; }
.pro_box_item.card-3d:nth-child(5) { transition-delay: 0.9s !important; }
.pro_box_item.card-3d:nth-child(6) { transition-delay: 1.1s !important; }

.pro_box_item.card-3d:hover {
  background: transparent !important;
  transform: translateY(-10px) !important;
  box-shadow: none !important;
}

.pro_box_img {
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.4s ease;
}

.pro_box_img img {
  height: 180px !important; /* Significantly larger high-fidelity images */
  width: 180px !important;
  object-fit: cover !important;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  border-radius: 20px !important;
}

.pro_box_item.card-3d:hover .pro_box_img {
  transform: scale(1.1);
}

.pro_box_text {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: var(--polosys-white) !important;
  text-transform: uppercase;
  margin-top: 10px;
}

@keyframes float-3d {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

@media (max-width: 1024px) {
  .pro_box_item.card-3d { width: 30% !important; margin-bottom: 30px; }
}

@media (max-width: 768px) {
  .pro_box_item.card-3d { width: 45% !important; }
}

@media (max-width: 480px) {
  .pro_box_item.card-3d { width: 90% !important; }
}

.sky {
  display: none !important; /* Remove cloud animation for modern look */
}

.lrg_fnt {
  font-size: 4rem !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  color: var(--polosys-white) !important;
  margin-bottom: 15px !important;
}

.bnmdm_fnt {
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  color: var(--polosys-white) !important;
}

.nr_fnt, .nr_fnt_world {
  font-size: 1.25rem !important;
  color: rgba(255,255,255,0.8) !important;
  margin-bottom: 30px !important;
}

.blue_btn_bnr {
  background: transparent !important;
  border: 1px solid var(--polosys-white) !important;
  color: var(--polosys-white) !important;
  border-radius: 0 !important;
  padding: 15px 30px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  margin-right: 15px !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

.blue_btn_bnr:hover {
  background: var(--polosys-white) !important;
  color: var(--polosys-navy) !important;
}

/* --- Counters Section --- */
.counters {
  background: var(--polosys-light-gray) !important;
  padding: 100px 0 !important;
}

.counters .wrapper {
  display: flex !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 30px !important;
}

.counters .card {
  background: transparent !important;
  border: none !important;
  flex: 1 !important;
  min-width: 200px !important;
  text-align: center !important;
  border-top: 2px solid var(--polosys-blue) !important;
  padding-top: 30px !important;
}

.counters .cdt {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  color: var(--polosys-navy) !important;
}

.counters h4 {
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 14px !important;
  color: var(--polosys-blue) !important;
}

/* --- Product Categories --- */
.pc_wrapper {
  padding: 120px 0 !important;
  background: var(--polosys-white) !important;
}

.wel_hed {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  text-align: left !important;
  margin-bottom: 60px !important;
}

.pro_box {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 40px !important;
  margin: 0 !important;
}

.pro_box_item {
  float: none !important;
  width: auto !important;
  background: var(--polosys-light-gray) !important;
  padding: 40px 20px !important;
  transition: all 0.3s ease !important;
  border-radius: 0 !important;
  text-align: center !important;
}

.pro_box_item:hover {
  transform: translateY(-10px) !important;
  background: var(--polosys-navy) !important;
  color: var(--polosys-white) !important;
}

.pro_box_text {
  font-weight: 700 !important;
  margin-top: 20px !important;
  font-size: 14px !important;
}

/* --- Hero Slider --- */
#hero-slider {
  height: 85vh !important;
  max-height: 85vh !important;
  overflow: hidden !important; 
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
}

.hero-slide {
  height: 85vh !important;
  background-size: cover;
  background-position: center;
  display: flex !important;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,12,38,0.9) 30%, rgba(0,12,38,0.2) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  color: var(--polosys-white);
  padding: 0;
  flex-shrink: 0;
}

.hero-container-flex {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.hero-image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 1;
  animation: float-banner 6s ease-in-out infinite;
  max-width: 650px;
}

.hero-image-wrap img {
  max-width: 100%;
  max-height: 55vh;
  width: auto;
  height: auto;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border: 4px solid rgba(255,255,255,0.2);
  object-fit: contain;
  transition: all 0.4s ease;
}

.hero-image-wrap img:hover {
  transform: scale(1.02);
  box-shadow: 0 50px 120px rgba(0,0,0,0.8);
}

@keyframes float-banner {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 1400px) {
  .hero-content { max-width: 480px; }
  .hero-container-flex { gap: 20px; }
}

@media (max-width: 1200px) {
  .hero-content h1 { font-size: 3.5rem; }
  .hero-image-wrap { max-width: 500px; }
}

@media (max-width: 991px) {
  .hero-container-flex {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
    flex: none;
  }
  .hero-image-wrap {
    padding-left: 0;
    justify-content: center;
    max-width: 100%;
    flex: none;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image-wrap img {
    max-height: 40vh;
  }
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1;
  letter-spacing: -2px;
}

.hero-content p {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-badge {
  height: 60px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-hero {
  background: var(--polosys-blue);
  color: var(--polosys-white);
  padding: 18px 40px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid var(--polosys-blue);
}

.btn-hero:hover {
  background: var(--polosys-white);
  color: var(--polosys-navy);
  border-color: var(--polosys-white);
}

.btn-hero.ghost {
  background: transparent;
  border-color: var(--polosys-white);
}

.btn-hero.ghost:hover {
  background: var(--polosys-white);
  color: var(--polosys-navy);
}

/* Owl Pagination - Modern Style */
.owl-controls .owl-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 12px;
  z-index: 10;
  width: auto;
  text-align: center;
}

.owl-controls .owl-page {
  display: inline-block;
}

.owl-controls .owl-page span {
  width: 12px !important;
  height: 12px !important;
  background: rgba(255,255,255,0.4) !important;
  border-radius: 50% !important; /* Circles look more modern for dots */
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
  border: 2px solid transparent;
}

.owl-controls .owl-page.active span {
  background: var(--polosys-white) !important;
  width: 32px !important;
  border-radius: 20px !important; /* Pills for active state */
}

/* Ensure owl-controls doesn't have default margin */
#hero-slider .owl-controls {
    margin-top: 0;
    position: static;
}

/* --- Footer --- */
/* --- Modern Compact Footer --- */
.footer {
  background: #000a1f; /* Deeper midnight background */
  padding: 60px 0 30px;
  color: var(--polosys-white);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* Logo in white for footer */
  opacity: 0.9;
}

.brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--polosys-blue);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--polosys-blue);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: var(--polosys-white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.country-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.3);
}
.modal-content {
  border-radius: 0 !important;
  background: var(--polosys-navy) !important;
  color: var(--polosys-white) !important;
}

.modal-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.form-control {
  border-radius: 0 !important;
  background: rgba(255,255,255,0.05) !important;
  color: var(--polosys-white) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.btn-primary {
  background: var(--polosys-blue) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px !important;
  font-weight: 700 !important;
}

/* --- Helpers --- */
.wrapper {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 4% !important;
}

/* --- Responsive Design --- */
/* --- Why Polosys Section (Premium Light SaaS UI) --- */
.why_section {
  background: var(--polosys-light-gray) !important;
  background-image: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%) !important;
  padding: 120px 0 !important;
  position: relative;
  overflow: hidden;
}

.why_header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.why_tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--polosys-blue);
  background: rgba(0, 96, 155, 0.08);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.why_title {
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--polosys-navy) !important;
  letter-spacing: -1px;
  margin-bottom: 25px !important;
}

.why_subtitle {
  font-size: 18px !important;
  color: #475569 !important;
  line-height: 1.8;
}

.why_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.why_card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 40px 30px;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.why_card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--polosys-blue) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 96, 155, 0.15) !important;
}

.why_icon_box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--polosys-blue) 0%, #3b82f6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 26px;
  color: white;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.why_card h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--polosys-navy) !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

.why_card p {
  font-size: 14px !important;
  color: #64748b !important;
  line-height: 1.7;
  margin: 0;
}

/* --- Light Theme Stats Strip --- */
.why_stats {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 30px;
  padding: 60px 40px;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  margin-top: 50px;
}

.stat_num {
  font-size: 48px;
  font-weight: 800;
  color: var(--polosys-navy) !important;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat_item p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--polosys-blue);
  font-weight: 700;
  margin: 0;
}

.stat_divider {
  width: 1px;
  height: 60px;
  background: #e2e8f0;
}

/* --- Unified Engagement Hub (Brands + Video) --- */
.engagement_hub {
  padding: 120px 0;
  background: linear-gradient(135deg, #0b132b, #1c2541, #3a506b);
  position: relative;
  overflow: hidden;
}

.brand_header {
  text-align: center;
  margin-bottom: 60px;
}

.brand_title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  letter-spacing: -1.5px;
}

.brand_subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 0 auto;
}

.brand_logo_card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.brand_logo_card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.brand_logo_card img {
  max-width: 85% !important;
  max-height: 85% !important;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: all 0.3s ease;
}

.brand_logo_card:hover img {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.05);
}

.section_divider {
  height: 1px;
  width: 100%;
  max-width: 1000px;
  margin: 80px auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.video_terminal {
  max-width: 1100px;
  margin: 0 auto 50px;
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal_header {
  background: #334155;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal_dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal_dot.red { background: #ff5f56; }
.terminal_dot.yellow { background: #ffbd2e; }
.terminal_dot.green { background: #27c93f; }

.terminal_label {
  margin-left: 10px;
  font-size: 13px;
  color: #94a3b8;
  font-family: 'Courier New', Courier, monospace;
}

.video_info {
  text-align: center;
  color: white;
}

.video_info h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.video_info p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 650px;
  margin: 0 auto;
}

/* --- Scroll Reveals --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .why_grid { grid-template-columns: repeat(2, 1fr); }
  .why_title { font-size: 36px !important; }
}

@media (max-width: 768px) {
  .why_grid { grid-template-columns: 1fr; }
  .why_stats { flex-direction: column; gap: 40px; }
  .stat_divider { display: none; }
  .why_section { padding: 80px 0 !important; }
}

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-hero {
    width: 100%;
    text-align: center;
  }

  .counters .wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .counters .card {
    min-width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile Devices */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 0 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .main-header .logo img {
    height: 30px;
  }
  
  .sidebar-menu {
    width: 100%;
    right: -100%;
    padding: 40px 20px;
  }
}

/* --- RTL Support --- */
body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Inter', 'Noto Sans Arabic', sans-serif !important;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .header-container {
  flex-direction: row-reverse;
}

body.rtl .sidebar-menu {
  right: auto;
  left: -400px;
}

body.rtl .sidebar-menu.open {
  right: auto;
  left: 0;
}

body.rtl .exp-grid {
  flex-direction: row-reverse;
}

body.rtl .why_grid {
  direction: rtl;
}

body.rtl .footer-grid {
  text-align: right;
}

body.rtl .footer-column h4::after {
  left: auto;
  right: 0;
}

body.rtl .side-indicators {
  left: auto;
  right: 30px;
}

.lang-switcher {
  display: flex;
  gap: 10px;
  margin-right: 15px;
  align-items: center;
}

.lang-switch {
  color: var(--polosys-white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
  cursor: pointer;
}

.lang-switch:hover, .lang-switch.active {
  color: var(--polosys-white) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

.main-header.over-light-section .lang-switch {
  color: var(--polosys-navy) !important;
}

/* Owl Carousel RTL Specific Fixes */
.rtl .owl-wrapper-outer {
  direction: ltr !important; /* Owl 1.x calculates from LTR */
}
.rtl .hero-content, .rtl .grid-caption, .rtl .section-title, .rtl .section-subtitle, .rtl .brand_header, .rtl .wel_hed {
  direction: rtl !important;
  text-align: right !important;
}
.rtl .hero-actions {
  justify-content: flex-start !important;
}
.rtl .exp-grid {
  flex-direction: row-reverse !important;
}
.rtl .blue-column, .rtl .light-purple-column {
  left: auto !important;
  right: -30px !important;
}
.rtl .next-grid {
  direction: ltr !important;
}
.rtl .next-grid .grid-item {
  direction: rtl !important;
}
