/* ==========================================
   Skyline - Main Stylesheet
   Colors: Navy (#0A192F), Gold (#D4AF37), Light (#F8F9FA)
   ========================================== */

/* CSS Variables */
:root {
  /* Brand Colors */
  --navy-primary: #0a192f;
  --navy-secondary: #1a2642;
  --gold-primary: #d4af37;
  --gold-light: #e6c35e;
  --light-bg: #0a192f;
  --white: #ffffff;

  /* Theme Transitions */
  --theme-transition:
    background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
  /* Text Colors */
  --text-primary: #f8f9fa;
  --text-secondary: #b8c5d6;
  --text-dark: #0a192f;
  --text-select: #f8f9fa;

  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  --navy-gradient: linear-gradient(135deg, #0a192f 0%, #1a2642 100%);

  /* Spacing */
  --section-padding: 80px 0;

  /* Typography */
  --font-primary: "Cairo", "Segoe UI", sans-serif;
  --font-secondary: "Cairo", "Segoe UI", sans-serif;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Additional Colors */
  --gold-hover: #f4d03f;
  --light-primary: #f8f9fa;
  --text-grey: #555555;
}

/* Light Mode Variables */
body.light-mode {
  --navy-primary: #ffffff;
  --navy-secondary: #f0f2f5;
  --text-primary: #0a192f;
  --text-secondary: #555555;
  --text-dark: #000000;
  --text-select: #0a192f;
  --navy-gradient: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
  --light-bg: #e2e8f0;
  --glass-bg: #ffffff; /* Solid White/Light for Light Mode visibility */
  --glass-border: rgba(10, 25, 47, 0.1); /* Darker border for Light Mode */
}

/* Default Dark Mode Glass */
:root {
  /* ... existing ... */
  --glass-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  --glass-border: rgba(212, 175, 55, 0.3);
}

/* Theme Toggle Button */
.theme-btn {
  width: 35px;
  justify-content: center;
  padding: 0 !important;
}

.theme-btn i {
  font-size: 14px;
  transition: transform 0.5s ease;
}

body.light-mode .theme-btn i {
  transform: rotate(360deg);
}

/* Mobile Theme Toggle Reorder */
@media (max-width: 480px) {
  .header-actions {
    flex-direction: row-reverse;
  }
}

/* ==========================================
   Top Header
   ========================================== */
.top-header {
  background: var(--color-bg-primary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 1001; /* Higher than main header */
}

.top-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-links a {
  color: var(--gold-primary);
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); /* Subtle background */
  border: 1px solid rgba(212, 175, 55, 0.2); /* Faint Gold Border */
}

.social-links a:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Header Selects */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.header-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--text-select);
  padding: 5px 30px 5px 35px; /* Space for icon and arrow */
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.light-mode .header-select {
  color: var(--text-select);
}

.header-select option {
  background: var(--light-bg);
  color: var(--text-select);
}

.light-mode .header-select option {
  background: var(--white);
  color: var(--text-select);
}

/* Custom Arrow */
.select-wrapper::after {
  content: "\f078"; /* FontAwesome Chevron Down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  color: var(--gold-primary);
  font-size: 0.7rem;
  pointer-events: none;
}

/* Icons inside wrapper */
.theme-icon-select,
.lang-icon-select {
  position: absolute;
  left: 12px;
  color: var(--gold-primary);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.header-select:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.header-select:focus {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.lang-btn:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.lang-btn i {
  font-size: 13px;
  color: #fff; /* White icon to match text */
}

.lang-btn:hover i {
  color: var(--navy-primary);
}

/* Responsive Top Header */
@media (max-width: 768px) {
  .top-header {
    padding: 6px 0;
  }

  .social-links {
    gap: 8px;
  }

  .social-links a {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* Mobile Selects */
  .header-actions {
    gap: 8px; /* Reduce gap between selects */
  }

  .header-select {
    padding: 0 15px 0 25px; /* Ultra compact */
    font-size: 11px; /* Smaller font */
    height: 26px; /* Smaller height */
    line-height: 26px;
    border-width: 1px;
  }

  .select-wrapper::after {
    right: 8px;
    font-size: 8px; /* Smaller arrow */
  }

  .theme-icon-select,
  .lang-icon-select {
    left: 8px;
    font-size: 10px; /* Smaller icon */
    line-height: 26px; /* Center vertically */
  }
}

@media (max-width: 480px) {
  .top-header-content {
    justify-content: space-between;
    flex-wrap: nowrap; /* Force single row */
    gap: 5px; /* Minimal gap */
  }

  .social-links {
    display: flex;
    gap: 5px;
    width: auto; /* Allow shrink */
  }

  .social-links a {
    width: 24px;
    height: 24px;
    font-size: 10px; /* Smaller icons */
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Fix vertical alignment */
  }

  .header-actions {
    gap: 5px;
    width: auto; /* Allow shrink */
  }

  .header-select {
    padding: 0 10px 0 20px; /* Compact padding */
    font-size: 10px; /* Smallest readable font */
    height: 24px;
    line-height: 22px;
  }

  .select-wrapper::after {
    right: 5px;
  }

  .theme-icon-select,
  .lang-icon-select {
    left: 6px;
    font-size: 9px;
  }
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--navy-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

button,
input,
textarea,
select {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Styles */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  padding: 14px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-primary);
  border: 2px solid var(--gold-primary);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  padding: 12px 30px;
}

.btn-gold-outline:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
}

/* ==========================================
   HEADER STYLES
   ========================================== */
.header {
  background: var(--navy-primary);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.header .logo {
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.header .logo img {
  height: 55px;
  width: auto;
  transition: var(--transition-fast);
}

.header.scrolled .logo img {
  height: 45px;
}

/* Navigation Links */
.header .nav-links {
  display: flex;
  gap: 0;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .nav-links > li {
  position: relative;
  padding: 0 20px;
}

.header .nav-links > li > a {
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-primary) !important;
  font-size: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  transition: var(--transition-fast);
}

.header .nav-links > li > a:hover {
  color: var(--gold-primary);
}

.header .nav-links > li > a i {
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.header .nav-links > li:hover > a i {
  transform: rotate(180deg);
}

/* Underline Effect */
.header .nav-links > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
}

.header .nav-links > li:hover > a::after {
  width: 100%;
  right: auto;
  left: 10px;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--navy-secondary);
  min-width: 250px;
  border-radius: 12px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  list-style: none;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 25px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border-right: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border-right-color: var(--gold-primary);
  padding-right: 30px;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%; /* Center relative to parent */
  right: auto;
  transform: translateX(-50%) translateY(20px); /* RTL centering: use -50% if LTR, but in RTL usually pure centering relies on left/50% and translate -50% regardless of dir if parent is relative. Let's try standard absolute centering */
  background: var(--navy-secondary);
  border-radius: 15px;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  min-width: 800px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  z-index: 1000;
}

.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-column h3 {
  color: var(--gold-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.mega-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-column ul li {
  margin-bottom: 8px;
}

.mega-column ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
}

.mega-column ul li a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  padding-right: 15px;
}

.mega-column ul li a::before {
  content: "▸";
  margin-left: 8px;
  opacity: 0;
  transition: var(--transition-fast);
}

.mega-column ul li a:hover::before {
  opacity: 1;
  margin-left: 0;
}

/* Badge in Mega Menu */
.badge {
  background: var(--gold-gradient);
  color: var(--navy-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-btn {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 25px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.lang-btn i {
  font-size: 1rem;
}

/* Primary Button in Header */
.header .btn-primary {
  background: var(--gold-gradient);
  color: var(--navy-primary);
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--gold-primary);
  transition: var(--transition-fast);
}

.header .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--gold-primary);
  border-radius: 3px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Hide hamburger on large screens */
@media (min-width: 1025px) {
  .hamburger {
    display: none !important;
  }

  .header .nav-links {
    display: flex !important;
  }
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
  .header .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--navy-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 0;
    overflow-y: auto;
    transition: var(--transition-normal);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .header .nav-links.active {
    right: 0;
  }

  .header .nav-links > li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }

  .header .nav-links > li > a {
    padding: 15px 0;
    width: 100%;
  }

  .dropdown-menu,
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: auto;
    width: 100%;
    display: none;
    padding: 0;
    background: rgba(212, 175, 55, 0.03);
    margin: 5px 0;
    border-radius: 8px;
    text-align: right;
  }

  /* Force Block Layout for Mobile Mega Menu */
  .mega-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 0;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .mega-column {
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .mega-column:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .dropdown.active .dropdown-menu,
  .dropdown.active .mega-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:hover .mega-menu {
    transform: none;
  }

  .hamburger {
    display: flex !important;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .d-mobile-none {
    display: none !important;
  }

  .header .logo img {
    height: 45px;
  }

  /* Mega Menu Mobile Specifics */
  .mega-column h3 {
    text-align: right;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
    margin-top: 0;
    color: var(--gold-primary);
  }

  .mega-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
  }

  .mega-column ul li {
    width: 100%;
  }

  .mega-column ul li a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start; /* Align to right in RTL */
    text-align: right;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
  }

  .mega-column ul li a::before {
    margin-left: 8px;
    margin-right: 0;
  }

  /* Disable Hover Effects on Mobile */
  .header .nav-links li:hover > a,
  .dropdown-menu a:hover,
  .mega-column ul li a:hover {
    background: transparent !important;
    color: var(--text-secondary) !important;
    padding-right: 0 !important;
    transform: none !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .header .nav-links {
    width: 280px;
  }

  .header .logo img {
    height: 40px;
  }

  .lang-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  height: 85vh; /* Reduced from 100vh */
  min-height: 600px; /* Reduced from 700px */
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.screen-mockup {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 350px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screen-content {
  width: 100%;
  height: 100%;
  background: var(--navy-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-overlay img {
  max-width: 250px;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Default RTL alignment */
  text-align: right;
  padding-right: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero-content .container {
    align-items: center; /* Center horizontally */
    text-align: center;
    padding-right: 15px; /* Reset padding */
    padding-left: 15px;
  }

  .hero-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid var(--gold-primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 25px;
}

.title-line-1 {
  display: block;
  color: white;
}

.title-line-2 {
  display: block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: white;
  max-width: 550px;
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* Hero Navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.2rem;
  border: 1px solid var(--gold-primary);
  transition: var(--transition-fast);
}

.hero-nav:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
}

.hero-prev {
  left: 30px;
}

.hero-next {
  right: 30px;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 15px;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.hero-dots .dot.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  width: 35px;
  border-radius: 10px;
}

/* ==========================================
   ABOUT SECTION - من نحن (Enhanced Design)
   ========================================== */
.about-section {
  background: var(--navy-gradient);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.about-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.about-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
}

.about-slider-wrapper {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 70px;
  z-index: 2;
  transition: max-width 0.3s ease;
}

@media (min-width: 992px) {
  .about-slider-wrapper {
    max-width: 100%;
  }

  .about-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Image smaller, Text wider */
    grid-template-areas:
      "image title"
      "image desc"
      "image values";
    gap: 0 40px;
    text-align: right;
    align-items: center;
    padding: 50px;
  }

  .about-image-container {
    grid-area: image;
    height: 100%;
    min-height: 450px;
    margin: 0;
  }

  .about-card-title {
    grid-area: title;
    text-align: right; /* Ensure RTL alignment */
    margin-bottom: 20px;
  }

  .about-card-desc {
    grid-area: desc;
    max-width: 100%; /* Fill grid cell */
    font-size: 1.15rem;
    text-align: right;
    margin: 0 0 30px 0;
  }

  .about-values-list {
    grid-area: values;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for efficiency */
    gap: 20px;
    margin: 0;
  }

  .value-item {
    padding: 24px;
    height: 100%; /* Match heights */
  }
}

.about-slide {
  display: none;
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 60px 50px;
  text-align: center;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(212, 175, 55, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-primary),
    transparent
  );
  border-radius: 30px 30px 0 0;
  opacity: 0.8;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow:
    0 25px 70px rgba(212, 175, 55, 0.2),
    0 0 0 1px rgba(212, 175, 55, 0.3) inset;
}

/* About Image Container */
.about-image-container {
  height: 500px;
  margin: 0 auto 30px;
  overflow: hidden;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  transition: all 0.4s ease;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-card-title {
  color: var(--gold-primary);
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  letter-spacing: -0.5px;
}

.about-card-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  .about-values-list {
    grid-template-columns: 1fr 1fr; /* 2x2 Grid */
  }
}

.value-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 16px;
  color: var(--light-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.value-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.value-item:hover::after {
  opacity: 1;
}

.value-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* Light Mode for About Section */
body.light-mode .about-section {
  background: var(--light-bg);
}

body.light-mode .about-section::before,
body.light-mode .about-section::after {
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
}

body.light-mode .about-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

body.light-mode .about-card::before {
  opacity: 1;
}

body.light-mode .about-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

body.light-mode .about-card-desc {
  color: var(--text-secondary);
}

body.light-mode .value-item {
  background: var(--glass-bg);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--navy-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

body.light-mode .value-item:hover {
  background: var(--glass-bg);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

body.light-mode .value-item span {
  color: var(--text-primary);
}

body.light-mode .about-nav {
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .about-nav:hover {
  background: var(--gold-primary);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

body.light-mode .about-dots .dot {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .about-dots .dot.active {
  background: var(--gold-primary);
}

.value-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2));
  transition: width 0.4s ease;
}

.value-item:hover::before {
  width: 100%;
}

.value-item:hover {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.25) 0%,
    rgba(212, 175, 55, 0.15) 100%
  );
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.value-item i {
  color: var(--navy-primary);
  background: var(--gold-primary);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  z-index: 1;
  flex-shrink: 0;
}

.value-item span {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  z-index: 1;
  flex: 1;
  line-height: 1.4;
}

/* Navigation Arrows - Enhanced */
.about-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.25) 0%,
    rgba(212, 175, 55, 0.15) 100%
  );
  backdrop-filter: blur(10px);
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.about-nav:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.about-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.about-prev {
  left: 0;
}

.about-next {
  right: 0;
}

/* Dots Navigation - Enhanced */
.about-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.about-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

.about-dots .dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: var(--gold-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.about-dots .dot.active {
  background: var(--gold-primary);
  width: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.about-dots .dot:hover:not(.active) {
  background: rgba(212, 175, 55, 0.6);
  transform: scale(1.2);
  border-color: var(--gold-primary);
}

.about-cta {
  text-align: center;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-nav,
  .about-nav,
  .services-nav,
  .portfolio-nav {
    display: none !important;
  }

  .about-section {
    padding: 0;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
  }

  .about-section .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .about-slider-wrapper {
    padding: 10px !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .about-card {
    padding: 40px 10px;
    border-radius: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .about-image-container {
    width: 100%;
    height: 250px;
    margin-bottom: 25px;
  }

  .about-card-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .about-card-desc {
    font-size: 1.1rem;
    margin-bottom: 35px;
  }

  .value-item {
    padding: 15px 20px;
  }

  .about-nav {
    width: 45px;
    height: 45px;
  }

  .about-image-container {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .about-slider-wrapper {
    padding: 0 45px;
  }

  .about-card {
    padding: 30px 20px;
  }

  .about-card-title {
    font-size: 1.5rem;
  }

  .value-item {
    gap: 12px;
    padding: 12px 16px;
  }

  .value-item i {
    font-size: 1.2rem;
  }

  .value-item span {
    font-size: 0.95rem;
  }
}

/* ==========================================
   PROCESS SECTION - آلية عملنا
   ========================================== */
.process-section {
  background: var(--navy-gradient);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  top: -250px;
  right: -250px;
  pointer-events: none;
}

.process-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 15px;
}

.process-section .section-description {
  color: rgba(248, 249, 250, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Process Steps Grid */
.process-flow {
  position: relative;
  padding: 60px 0;
}

.wave-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 250px;
  z-index: 0;
  opacity: 0.5;
}

/* ==========================================
   PROCESS SECTION - آلية عملنا
   ========================================== */
.process-section {
  background: var(--navy-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.wave-path {
  fill: none;
  stroke: rgba(212, 175, 55, 0.4);
  stroke-width: 2;
  stroke-dasharray: 10 10;
  stroke-linecap: round;
}

.process-steps {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 35px;
  flex-wrap: wrap;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  position: relative;
}

/* Zigzag positioning */
.process-step[data-step="1"],
.process-step[data-step="3"],
.process-step[data-step="5"],
.process-step[data-step="7"] {
  margin-top: -70px;
}

.process-step[data-step="2"],
.process-step[data-step="4"],
.process-step[data-step="6"] {
  margin-top: 70px;
}

/* Small dots between steps */
.process-step::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.process-step:last-child::after {
  display: none;
}

/* Badge/Shield Shape - Like in the image */
.hexagon {
  position: relative;
  width: 120px;
  height: 120px;
  background: var(--navy-secondary); /* Default to Navy */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hexagon i {
  font-size: 2.5rem;
  color: var(--white);
  z-index: 3;
}

/* Specific Step Colors - As requested to match image */
.hex-red {
  background: #e74c3c;
  box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.hex-orange {
  background: #f39c12;
  box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.hex-cyan {
  background: #3498db; /* Blue/Cyan */
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.hex-green {
  background: #2ecc71;
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.hex-purple {
  background: #9b59b6;
  box-shadow: 0 10px 20px rgba(155, 89, 182, 0.3);
}

.hex-pink {
  background: #e91e63;
  box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

.hex-gray {
  background: #95a5a6;
  box-shadow: 0 10px 20px rgba(149, 165, 166, 0.3);
}

/* Steps Text */
.step-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 15px;
}

.step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  width: auto;
  height: auto;
  border: none;
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 4;
  font-family: var(--font-primary);
}
/* ==========================================
   PAGE HEADER (Inner Pages)
   ========================================== */
.page-header {
  background: var(--navy-primary);
  padding: 120px 0 60px; /* Top padding to clear fixed header */
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.page-title {
  color: var(--gold-primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.breadcrumb li a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb li a:hover {
  color: var(--white);
}

.breadcrumb li.active {
  color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   ABOUT PAGE CONTENT
   ========================================== */
.about-page-section {
  padding: 80px 0;
  background: var(--navy-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-title {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: right;
}

.about-text .section-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.vision-mission {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vm-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.vm-item:hover {
  border-color: var(--gold-primary);
  transform: translateX(-5px);
}

.vm-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.vm-content h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.vm-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(212, 175, 55, 0.2);
}

/* Values Page Grid */
.values-section-page {
  padding: 80px 0;
  background: var(--navy-primary);
}

.values-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card-page {
  background: var(--navy-secondary);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.value-card-page:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
}

.value-card-page i {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
  display: block;
}

.value-card-page h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.value-card-page p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text .section-title {
    text-align: center;
  }
}

.hexagon:hover {
  transform: scale(1.08) translateY(-8px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.hex-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.step-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9); /* White Number on colored bg */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hexagon:hover .step-number {
  color: #fff;
}

.hex-content i {
  font-size: 2rem;
  color: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Badge Colors - Restored Original Colors */
.hex-red {
  background: #e74c3c;
  border: none;
}
.hex-red:hover {
  background: #c0392b;
}

.hex-orange {
  background: #f39c12;
  border: none;
}
.hex-orange:hover {
  background: #e67e22;
}

.hex-cyan {
  background: #3498db;
  border: none;
}
.hex-cyan:hover {
  background: #2980b9;
}

.hex-green {
  background: #2ecc71;
  border: none;
}
.hex-green:hover {
  background: #27ae60;
}

.hex-purple {
  background: #9b59b6;
  border: none;
}
.hex-purple:hover {
  background: #8e44ad;
}

.hex-pink {
  background: #e91e63;
  border: none;
}
.hex-pink:hover {
  background: #d81b60;
}

/* Icon Colors on Colored Background */
.hex-red i,
.hex-orange i,
.hex-cyan i,
.hex-green i,
.hex-purple i,
.hex-pink i {
  color: #fff; /* White icon on colored bg */
}

.hex-red:hover i,
.hex-orange:hover i,
.hex-cyan:hover i,
.hex-green:hover i,
.hex-purple:hover i,
.hex-pink:hover i {
  color: #fff;
  transform: scale(1.1);
}

.hex-gray {
  background: #95a5a6;
}

.process-step h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  transition: color 0.3s ease;
}

/* ==========================================
   SERVICES SECTION - خدماتنا
   ========================================== */
.services-section {
  background: var(--navy-primary); /* Simplified background */
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  top: -400px;
  left: -400px;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.services-section::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.06) 0%,
    transparent 70%
  );
  bottom: -300px;
  right: -300px;
  pointer-events: none;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.services-section .section-badge {
  display: inline-block;
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 8px 24px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-section .section-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--light-primary);
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.services-section .section-description {
  color: rgba(248, 249, 250, 0.8);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Filter Buttons */
.services-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border-radius: 100px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Filter Scroll */
@media (max-width: 768px) {
  .services-filter {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    border-radius: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    border-left: none;
    border-right: none;
    margin-bottom: 40px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.02);
  }

  .services-filter::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .services-filter .category-item,
  .services-filter .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50px;
  color: rgba(248, 249, 250, 0.8);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Animated underline */
.filter-btn::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-primary),
    transparent
  );
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--gold-primary);
}

.filter-btn.active::after {
  width: 60%;
}

/* Ripple effect */
.filter-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease,
    opacity 0.6s ease;
  opacity: 0;
}

.filter-btn:active::before {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition:
    width 0s,
    height 0s,
    opacity 0s;
}

.filter-btn:hover {
  color: var(--gold-primary);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(212, 175, 55, 0.04) 100%
  );
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-hover) 100%
  );
  border-color: var(--gold-primary);
  color: var(--navy-primary);
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.5),
    0 0 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-5px) scale(1.08);
}

.filter-btn.active:hover {
  transform: translateY(-5px) scale(1.1);
}

.filter-btn i {
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.filter-btn:hover i {
  transform: rotate(360deg) scale(1.2);
}

.filter-btn.active i {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.filter-btn span {
  position: relative;
  z-index: 1;
  font-family: var(--font-primary);
}

/* Filter Count Badge */
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.filter-btn.active .filter-count {
  background: rgba(
    10,
    25,
    47,
    0.3
  ); /* Kept as RGBA for checks but 10,25,47 is Navy Primary. */
  background: rgba(10, 25, 47, 0.5); /* darkened */
  color: var(--navy-primary);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  animation: countPulse 0.5s ease;
}

@keyframes countPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.filter-btn:hover .filter-count {
  transform: scale(1.1);
  background: rgba(212, 175, 55, 0.3);
}

/* Services Grid Container */
.services-slider-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
  overflow: hidden;
}

/* Services Grid - Now a Slider */
.services-grid {
  display: flex;
  gap: 35px;
  overflow: visible;
  position: relative;
  z-index: 1;
  padding: 20px 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Card */
.service-card {
  min-width: 300px; /* Reduced from 380px to match mobile feel */
  max-width: 320px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 25px;
  padding: 40px 35px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
}

/* Service Card Typography & Spacing */
.service-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  opacity: 0.9;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.service-card ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card ul li i {
  color: var(--gold-primary);
  font-size: 0.8rem;
}

.light-mode .service-card h3 {
  color: var(--text-primary);
}

.light-mode .service-card p,
.light-mode .service-card ul li {
  color: var(--text-grey);
}

.light-mode .service-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Softer shadow for light mode */
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-primary) 50%,
    transparent 100%
  );
  opacity: 0.8;
}

.service-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.25);
}

.service-card:hover::after {
  opacity: 1;
}

/* Service Icon */
.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d4af37 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--gold-primary), #ffd700);
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(10px);
}

.service-card:hover .service-icon {
  transform: rotateY(360deg) scale(1.1);
}

/* Service Link */
.service-link,
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid var(--gold-primary);
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: auto; /* Push to bottom */
}

.service-link::before,
.product-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gold-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.5s ease,
    height 0.5s ease;
  z-index: 0;
}

.service-link:hover::before,
.product-link:hover::before {
  width: 300px;
  height: 300px;
}

.service-link:hover,
.product-link:hover {
  color: var(--navy-primary);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  transform: translateX(-5px);
}

.service-link span,
.product-link span,
.service-link i,
.product-link i {
  position: relative;
  z-index: 1;
}

.service-link i,
.product-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i,
.product-link:hover i {
  transform: translateX(-5px);
}

/* Navigation Arrows */
.services-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
  font-size: 1.2rem;
}

.services-nav:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.services-prev {
  right: 0;
}

.services-next {
  left: 0;
}

/* ==========================================
   SERVICES SIDEBAR LAYOUT
   ========================================== */

/* Large Screen Enhancements for Service Cards */
@media (min-width: 992px) {
  .service-card {
    padding: 50px 40px; /* More breathing room */
    min-height: 480px; /* Taller consistent cards */
    justify-content: space-between;
  }

  .service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .service-card p {
    font-size: 1.05rem;
    margin-bottom: 30px;
  }

  .service-card ul li {
    font-size: 1rem;
    margin-bottom: 15px;
  }
}

.services-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Sidebar Styles */
.services-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 20px;
  padding: 25px;
  position: sticky;
  top: 100px; /* Sticky sidebar */
  z-index: 10;
}

.sidebar-header {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 15px;
}

.sidebar-header h3 {
  color: var(--gold-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-group {
  margin-bottom: 30px;
}

.sidebar-group:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.search-box input:focus {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  opacity: 0.7;
}

/* Category List (Checkbox Style) */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  transition: all 0.3s ease;
  user-select: none;
}

.category-item input {
  display: none; /* Hide default radio */
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 5px;
  margin-left: 12px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-item input:checked ~ .checkmark {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

.category-item input:checked ~ .checkmark::after {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--navy-primary);
  font-size: 0.7rem;
}

.cat-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  flex: 1;
}

.category-item:hover .cat-name {
  color: #fff;
}

.category-item input:checked ~ .cat-name {
  color: var(--gold-primary);
  font-weight: 600;
}

.cat-count {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.category-item input:checked ~ .cat-count {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
}

/* Services Content Area */
.services-content-area {
  flex: 1;
  min-width: 0; /* Important for slider inside flex */
  position: relative;
}

/* Adjust Slider Container for Side Layout */
.services-slider-container {
  width: 100%;
  padding: 0 60px; /* Keep navigation space */
}

/* Mobile Responsiveness for Sidebar */
@media (max-width: 992px) {
  .services-layout {
    flex-direction: column;
    gap: 0;
  }

  .services-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 30px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
  }

  .sidebar-header {
    margin: 0;
    border: none;
    padding: 0;
    width: 100%;
    margin-bottom: 10px;
  }

  .sidebar-group {
    flex: 1;
    min-width: 200px;
    margin: 0;
  }

  .category-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 5px;
    gap: 15px;
  }

  .category-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .checkmark {
    display: none;
  }

  .category-item input:checked ~ .cat-name {
    color: var(--gold-primary);
  }

  .services-slider-container {
    padding: 0 45px;
  }
}

@media (max-width: 768px) {
  .services-sidebar {
    background: transparent;
    border: none;
    padding: 0;
    display: block;
  }

  .sidebar-header {
    display: none;
  }

  .search-box {
    margin-bottom: 15px;
  }

  .sidebar-group h4 {
    display: none;
  }

  /* Ensure container is full width on tablets/large phones too */
  .services-slider-container {
    padding: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
  }

  .category-list {
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .category-list::-webkit-scrollbar {
    display: none;
  }

  .category-item {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin: 0;
    padding: 6px 12px;
  }

  .category-item input:checked ~ .cat-name {
    color: #fff;
  }

  .category-item:has(input:checked) {
    background: var(--gold-primary);
  }

  .category-item:has(input:checked) .cat-name,
  .category-item:has(input:checked) .cat-count {
    color: var(--navy-primary);
  }
}

@media (max-width: 480px) {
  /* BODY & WRAPPER RESET */
  body,
  html {
    overflow-x: hidden;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Force parents to have zero padding/margin */
  .services-section,
  .services-content-area,
  .services-layout {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Container Wrapper - Constrain to Viewport */
  .services-slider-container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    position: relative;
    overflow: hidden;
    z-index: 5;
    box-sizing: border-box;
  }

  /* Flex Grid - Full Width with Gap */
  .services-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100% !important;
    height: auto;
    align-items: stretch;
    overflow: visible;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* The Card Itself - AUTO HEIGHT & RESPONSIVE WIDTH */
  .service-card {
    min-width: 100% !important; /* Force Full Viewport Width */
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
    height: auto; /* Allow growth */
    min-height: 480px; /* Minimum height to fit content comfortably */

    /* Layout - Top to Bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start from top! Don't center vertically */
    text-align: center;

    /* Spacing */
    padding: 50px 20px;
    margin: 0 !important;
    box-sizing: border-box; /* Include padding in width calculation */

    /* Visibility */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    /* Design */
    background: var(--navy-primary); /* Fallback solid color */
    background: linear-gradient(
      135deg,
      rgba(16, 30, 50, 0.95) 0%,
      rgba(10, 20, 40, 0.95) 100%
    );
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 10;
    overflow: visible;
  }

  /* Force all children to be visible */
  .service-card > * {
    z-index: 20;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0; /* Don't squash items */
  }

  /* Icon */
  .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    color: var(--gold-primary);
  }

  .service-icon i {
    font-size: 2rem;
    color: var(--gold-primary);
  }

  /* Title */
  .service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* Description */
  .service-description {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.6;
    display: block;
    max-width: 100%;
    white-space: normal;
  }

  /* Features List */
  .service-features {
    width: 100%;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
  }

  .service-features li {
    width: 100%;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .service-features li i {
    color: var(--gold-primary);
  }

  /* Link/Button */
  .service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--gold-primary);
    color: var(--navy-primary) !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }

  .services-nav {
    display: none !important;
  }

  /* Navigation Arrows - Fixed Position relative to Container */
  .services-nav-old {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy-primary);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    border-radius: 50%;
    z-index: 100; /* Super high to ensure visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }

  .services-prev {
    right: 5px; /* Slight offset from edge */
    left: auto;
  }

  .services-next {
    left: 5px; /* Adjusted: Move slightly more right as requested */
    right: auto;
  }
}

/* ==========================================
   PORTFOLIO SECTION - معرض المشاريع
   ========================================== */
.portfolio-section {
  background: var(--navy-primary);
  padding: 80px 0;
  position: relative;
}

.portfolio-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-section .section-badge {
  font-size: 0.9rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.portfolio-section .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.portfolio-section .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.portfolio-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.portfolio-slider {
  overflow: hidden;
  padding: 20px 0 60px;
}

.portfolio-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portfolio Cards */
.portfolio-card {
  min-width: calc(33.333% - 20px);
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--glass-border);
}

.portfolio-card:hover {
  transform: translateY(-15px);
  border-color: var(--gold-primary);
  box-shadow: 0 25px 60px rgba(212, 175, 55, 0.2);
}

.card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-card:hover .card-image img {
  transform: scale(1.1);
}

/* Card Content */
.card-content {
  padding: 30px 25px;
  position: relative;
  background: transparent; /* Changed from white */
  min-height: 140px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary); /* Changed from navy */
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary); /* Changed from #666 */
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-arrow {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.card-arrow i {
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.portfolio-card:hover .card-arrow {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.portfolio-card:hover .card-arrow i {
  transform: translateX(-3px);
}

/* Navigation Arrows */
.portfolio-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.7);
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.portfolio-nav:hover {
  background: var(--gold-primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.portfolio-prev {
  left: 10px;
}

.portfolio-next {
  right: 10px;
}

/* Dots Indicator */
.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.portfolio-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.portfolio-dots .dot.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  width: 35px;
  border-radius: 10px;
}

.portfolio-dots .dot:hover {
  background: rgba(212, 175, 55, 0.6);
  transform: scale(1.15);
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.footer {
  background: var(--navy-primary);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: var(--gold-primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-right: 5px;
}

.footer-contact ul li {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--gold-primary);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--text-secondary);
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--navy-secondary);
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 2px solid var(--gold-primary);
}

.close-modal {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 2rem;
  color: var(--gold-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal:hover {
  transform: rotate(90deg);
  color: var(--white);
}

.modal-content h2 {
  color: var(--gold-primary);
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: var(--navy-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold-gradient);
  color: var(--navy-primary);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--navy-primary);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  transition: var(--transition-fast);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.scroll-top.active {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .screen-mockup {
    width: 400px;
    height: 280px;
  }

  /* About Section - Tablet */
  .about-content-wrapper {
    gap: 30px;
    padding: 30px;
  }

  .about-image {
    height: 350px;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }

  .about-description {
    font-size: 1.05rem;
  }

  .process-steps {
    gap: 30px;
  }

  .hexagon {
    width: 100px;
    height: 115px;
  }

  .hexagon::before,
  .hexagon::after {
    border-left-width: 50px;
    border-right-width: 50px;
  }

  .hex-content {
    top: 28.75px;
    width: 100px;
    height: 57.5px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    height: auto;
    min-height: 600px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .screen-mockup {
    display: none;
  }
} /* End Tablet Media Query */

/* ==========================================
   WHY US SECTION - لماذا نحن
   ========================================== */
.why-us-section {
  background: var(--navy-secondary); /* Standardized from #0a0e17 */
  padding: 80px 0;
  position: relative;
}

.why-us-section .section-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.why-us-section .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-primary);
  margin: 20px auto 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.why-us-card {
  background: var(--glass-bg);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition-normal);
}

.why-us-card:hover {
  transform: translateY(-10px);
}

.why-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #0a0e17;
  transition: var(--transition-fast);
  position: relative;
}

.why-icon i {
  color: #0c1626;
}

/* Badge decoration on icon (like screenshot) ?? No, simple icon */

.why-us-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.why-us-card p {
  color: #8892b0;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .why-us-section {
    padding: 50px 0;
  }

  .why-us-section .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .why-us-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .why-us-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    padding: 25px 15px;
  }

  /* Scrollbar styling */
  .why-us-grid::-webkit-scrollbar {
    height: 6px;
  }

  .why-us-grid::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
  }

  .why-us-grid::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
  }

  .hero-content .container {
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* About Section - Mobile */
  .about-slider {
    min-height: auto;
  }

  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px;
  }

  .about-image {
    height: 200px;
    order: -1; /* الصورة فوق */
  }

  .about-text {
    padding: 0;
    text-align: center;
  }

  .about-text h3 {
    font-size: 1.6rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .about-dots {
    margin-bottom: 170px;
  }

  .values-list {
    text-align: center;
  }

  .values-list li {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .about-nav {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .about-prev {
    left: 5px;
  }

  .about-next {
    right: 5px;
  }

  /* Process Section - Mobile */
  .process-steps {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 40px;
  }

  .process-step[data-step="1"],
  .process-step[data-step="2"],
  .process-step[data-step="3"],
  .process-step[data-step="4"],
  .process-step[data-step="5"],
  .process-step[data-step="6"],
  .process-step[data-step="7"] {
    grid-column: 1;
    grid-row: auto;
  }

  .wave-line {
    display: none;
  }

  .hexagon {
    width: 110px;
    height: 126px;
  }

  .hexagon::before,
  .hexagon::after {
    border-left-width: 55px;
    border-right-width: 55px;
  }

  .hexagon::before {
    border-bottom-width: 31.5px;
  }

  .hexagon::after {
    border-top-width: 31.5px;
  }

  .hex-content {
    top: 31.5px;
    width: 110px;
    height: 63px;
  }

  /* Portfolio Section - Mobile */
  .portfolio-container {
    padding: 0 20px;
  }

  .portfolio-card {
    min-width: 90%;
  }

  .portfolio-nav {
    display: none !important;
  }

  .portfolio-nav-old {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .portfolio-prev {
    left: 5px;
  }

  .portfolio-next {
    right: 5px;
  }

  .card-image {
    height: 220px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hamburger {
    display: flex;
  }

  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    left: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Utility Classes */
.d-mobile-none {
  display: inline-flex;
}

@media (max-width: 768px) {
  .process-section {
    padding: 50px 0;
  }

  .process-section .section-title {
    font-size: 2rem;
  }

  .process-section .section-description {
    font-size: 1rem;
    padding: 0 20px;
  }

  .wave-line {
    display: none;
  }

  .process-steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .process-step {
    flex: 0 0 150px;
    scroll-snap-align: start;
    margin-top: 0 !important;
  }

  .hexagon {
    width: 80px;
    height: 92px;
    margin: 20px 0;
  }

  .hexagon::before,
  .hexagon::after {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
  }

  .hexagon::before {
    border-bottom-width: 23px;
  }

  .hexagon::after {
    border-top-width: 23px;
  }

  .hex-content {
    width: 80px;
    height: 92px;
  }

  .step-number {
    font-size: 0.9rem;
  }

  .hex-content i {
    font-size: 1.4rem;
  }

  .process-step h4 {
    font-size: 0.9rem;
  }

  /* Scrollbar */
  .process-steps::-webkit-scrollbar {
    height: 6px;
  }

  .process-steps::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
  }

  .process-steps::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
  }
}

@media (max-width: 480px) {
  .process-section {
    padding: 40px 0;
  }

  .process-section .section-title {
    font-size: 1.7rem;
  }

  .process-step {
    flex: 0 0 130px;
  }

  .hexagon {
    width: 70px;
    height: 80px;
  }

  .hexagon::before,
  .hexagon::after {
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
  }

  .hexagon::before {
    border-bottom-width: 20px;
  }

  .hexagon::after {
    border-top-width: 20px;
  }

  .hex-content {
    width: 70px;
    height: 80px;
  }

  .hex-content i {
    font-size: 1.2rem;
  }

  .step-number {
    font-size: 0.8rem;
  }
}

.d-mobile-none {
  display: none !important;
}

/* ==========================================
   SERVICES SIDEBAR & LAYOUT
   ========================================== */

/* Layout Container */
.services-layout {
  display: flex;
  gap: 30px;
  position: relative;
  align-items: flex-start;
}

/* Hide Slider Navigation in Grid Mode - REMOVED */
/*
.services-nav {
  display: none !important;
}
*/

/* Sidebar Styling (Desktop) */
.services-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 25px;
  position: sticky;
  top: 100px; /* Adjust based on header height */
  z-index: 90;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-header h3 {
  color: var(--gold-primary);
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-sidebar {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-sidebar:hover {
  color: var(--gold-primary);
}

.sidebar-group {
  margin-bottom: 30px;
}

.sidebar-group:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: var(--gold-primary);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  padding: 12px 45px 12px 15px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.search-box input::placeholder {
  color: rgba(248, 249, 250, 0.5);
}

/* Category List (Radio Buttons) */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-item {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Hide default radio input */
.category-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Custom Checkmark/Indicator */
.category-item .checkmark {
  position: absolute;
  right: 15px;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
  display: none;
}

/* Active State */
.category-item:has(input:checked) {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.2) 0%,
    rgba(212, 175, 55, 0.05) 100%
  );
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-item .cat-name {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.category-item:has(input:checked) .cat-name {
  color: var(--gold-primary);
  font-weight: 700;
}

.category-item .cat-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.category-item:has(input:checked) .cat-count {
  background: var(--gold-primary);
  color: var(--navy-primary);
  font-weight: 700;
}

/* Content Area */
.services-content-area {
  flex: 1;
  min-width: 0; /* Prevents overflow in flex items */
  overflow: hidden; /* Ensure slider doesn't overflow */
}

/* Update Service Card for Grid - REMOVED to restore slider look */
/* 
.services-grid {
    display: grid !important; ...
}
*/

/* Hide/Show classes for filtering */
.service-card.hide {
  display: none !important;
}

.service-card.show {
  display: block !important;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
  display: none; /* Hidden on desktop */
  align-items: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: var(--navy-primary);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px dashed rgba(212, 175, 55, 0.3);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.no-results p {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Responsive Styles (Mobile Sidebar) */
@media (max-width: 991px) {
  /* Native Horizontal Scroll for Services */
  .services-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Space for scrollbar */
    gap: 20px;
    width: 100%;
  }

  .service-card {
    min-width: 280px; /* Ensure cards have width */
    max-width: 320px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* Hide arrows on mobile */
  .services-nav {
    display: none !important;
  }

  .services-layout {
    flex-direction: column;
  }

  .mobile-filter-toggle {
    display: flex;
  }

  .services-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Off-canvas start */
    height: 100vh;
    width: 320px; /* Width on mobile */
    background: #0a192f;
    z-index: 2000;
    border-radius: 0; /* Remove corners */
    border-left: 1px solid var(--gold-primary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .services-sidebar.active {
    right: 0; /* Slide in */
  }

  .close-sidebar {
    display: block; /* Show close button */
  }

  .services-content-area {
    width: 100%;
  }

  /* Overlay backing */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
/* Force Full Width Override */
body,
html {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* ==========================================
   HOMEPAGE CONTACT SECTION - REFINED (FORM LEFT, INFO RIGHT)
   ========================================== */
#contact.contact-section {
  padding: 100px 0;
  background: #0d1a2d; /* Deep Navy */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Form wider than info */
  gap: 60px;
  align-items: start;
}

/* Right Column: Info & Social */
.contact-info-col {
  text-align: right;
  order: 1; /* Info Right */
}

.info-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  display: flex;
  flex-direction: column; /* Stack icon on top of text */
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  transition: all 0.3s ease;
  text-align: center; /* Center text as well */
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-primary);
  transform: translateY(-5px);
}

.info-card-text {
  margin-top: 15px;
}

.info-card-text h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.info-card-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
}

.info-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.3rem;
}

/* Left Column: Form Box */
.contact-form-col {
  order: 2; /* Form Left */
}

.contact-form-box {
  background: #0a1421;
  padding: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: right;
}

.contact-form-box .form-title {
  color: var(--gold-primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.contact-form label {
  display: block;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  padding: 15px 20px;
  color: var(--white) !important;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-primary) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  outline: none;
}

.contact-form .btn-gold {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 12px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-box {
    padding: 30px 20px;
  }

  /* Ensure input rows stack on mobile */
  #contact .input-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ==========================================
   Light Mode General Adjustments
   ========================================== */
body.light-mode .section-header .section-title {
  color: var(--text-primary);
  text-shadow: none;
}

body.light-mode .section-header .section-description {
  color: var(--text-secondary);
}

body.light-mode .section-badge {
  color: var(--gold-primary);
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.05);
}

/* Light Mode for Contact Section */
body.light-mode #contact.contact-section {
  background: var(--light-bg);
}

body.light-mode #contact.contact-section::before,
body.light-mode #contact.contact-section::after {
  background: radial-gradient(
    circle,
    rgba(10, 25, 47, 0.05) 0%,
    transparent 70%
  );
}

body.light-mode .info-card,
body.light-mode .contact-form-box {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

body.light-mode .info-card::before {
  opacity: 0.8;
}

body.light-mode .info-card-icon {
  background: rgba(10, 25, 47, 0.05);
  color: var(--navy-primary);
}

body.light-mode .info-card-text h3 {
  color: var(--navy-primary);
}

body.light-mode .info-card-text p,
body.light-mode .info-card-text a {
  color: var(--text-secondary);
}

body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--text-primary) !important;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
  background: var(--white) !important;
  border-color: var(--navy-primary) !important;
  box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1);
}

body.light-mode .contact-form label,
body.light-mode .contact-title,
body.light-mode .contact-desc {
  color: var(--navy-primary) !important;
}

body.light-mode .contact-form-box .form-title {
  color: var(--navy-primary);
}

/* Social Feeds Light Mode */
body.light-mode .social-feeds-section {
  background: var(--light-bg);
}

body.light-mode .social-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body.light-mode .social-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .social-platform-icon {
  background: var(--white);
}

/* Fix Hero slides title colors in light mode */
body.light-mode .hero-title .title-line-1 {
  color: var(--navy-primary);
}

/* Fix Slider Arrows inside Swiper / social feed in light mode */
body.light-mode .social-slider-nav {
  background: var(--white);
  color: var(--navy-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .social-slider-nav:hover {
  background: var(--navy-primary);
  color: var(--white);
  border-color: var(--navy-primary);
}

/* ==========================================
   LTR / English Overrides (lang-en)
   ========================================== */

/* Flip Portfolio Card Arrow */
.lang-en .card-arrow {
  left: auto;
  right: 25px;
}

/* Flip FontAwesome Arrows */
.lang-en i.fa-arrow-left {
  transform: rotate(180deg);
}

/* Flip Service/Product Link Hover Animation */
.lang-en .service-link:hover,
.lang-en .product-link:hover {
  transform: translateX(5px);
}

.lang-en .service-link:hover i,
.lang-en .product-link:hover i {
  transform: translateX(5px);
}

/* Flip Portfolio Hover Animation */
.lang-en .portfolio-card:hover .card-arrow i {
  transform: translateX(3px);
}
