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

:root {
  /* Core Colors - Refined Bronze & Charcoal */
  --primary: #8e7955;
  /* Logo Bronze */
  --primary-light: #a68f6a;
  --primary-dark: #726144;
  --secondary: #1a1817;
  /* Logo Charcoal */
  --accent: #d4c1a7;
  /* Light Gold/Beige */

  --bg-dark: #0f0e0d;
  --bg-light: #f8f4ed;

  --white: #ffffff;
  --black: #000000;
  --text-main: #2d2926;
  --text-muted: #666666;

  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);

  /* Shadows & Depth */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --main-transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html,
body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

body {
  direction: rtl;
  font-family: 'Inter', 'Cairo', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Utility Classes */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.premium-btn {
  background: var(--primary);
  color: var(--white);
  padding: 10px 25px;
  /* Slightly more compact */
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--main-transition);
  border: 1px solid transparent;
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(142, 121, 85, 0.2);
}

.premium-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(142, 121, 85, 0.3);
  color: var(--white);
}

.premium-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  transition: var(--main-transition);
  text-decoration: none;
}

.premium-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Section Styling */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--main-transition);
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.topbar {
  background: #4a4135;
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  width: 100%;
  position: relative;
  z-index: 1001;
  font-family: 'Cairo', sans-serif;
  /* Standardized font */
}

.topbar a {
  color: #ffffff !important;
  text-decoration: none;
  transition: var(--main-transition);
}

.topbar a:hover {
  opacity: 0.8;
}

.topbar .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.topbar i {
  color: var(--primary-light);
  margin-right: 5px;
}

.midbar {
  background: transparent;
  padding: 0 !important;
  /* Remove gap */
  margin-top: -5px;
  /* Pull up to join with topbar */
}

.navbar {
  background: var(--white);
  border-radius: 100px !important;
  /* Pill shape */
  box-shadow: var(--shadow-lg);
  padding: 8px 35px !important;
  /* Adjusted padding for larger logo */
  transition: var(--main-transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  padding: 10px 12px !important;
  /* Reduced for more items */
  color: var(--secondary) !important;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  font-size: 0.92rem;
  /* Slightly smaller for better fit */
  white-space: nowrap;
  /* Prevent wrapping */
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(142, 121, 85, 0.05);
}

/* Premium Desktop Dropdowns */
@media (min-width: 992px) {
  .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    padding: 15px !important;
    min-width: 220px;
    margin-top: 10px !important;
    background: #ffffff;
  }

  .dropdown-item {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    color: var(--secondary);
    padding: 10px 15px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: right;
  }

  .dropdown-item:hover {
    background: rgba(142, 121, 85, 0.08);
    color: var(--primary) !important;
    transform: translateX(-5px);
  }
}

.dropdown-toggle::after {
  display: none !important;
  /* Hide default arrow */
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle::before {
  content: '\F282';
  /* bi-chevron-down */
  font-family: 'bootstrap-icons';
  font-size: 0.7rem;
  opacity: 0.5;
  order: -1;
  /* Move to right side in RTL */
}

.brand-logo {
  height: 75px;
  width: auto;
  transition: var(--main-transition);
  display: block;
}

/* Hero Section */
.hcintro {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--secondary);
  padding-top: 80px;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 13, 0.15);
  /* Very light tint for maximum brightness */
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  /* Higher z-index to stay above other elements */
  pointer-events: auto;
  /* Content above overlay */
  color: #fff;
  text-align: right;
  margin-top: 60px;
  /* Move it lower as requested */
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  /* Slightly larger */
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
  /* Stronger shadow for 'pop' */
}

.hero-content h1 span {
  color: #e5c18b;
  /* Brighter, more vivid bronze */
  text-shadow: 0 0 20px rgba(229, 193, 139, 0.3);
  /* Subtle glow */
}

.hero-content p {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  /* Brighter and larger */
  margin-bottom: 40px;
  color: #ffffff;
  opacity: 1 !important;
  /* Force full brightness */
  max-width: 650px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

/* Info Cards in Hero */
.hero-stats {
  margin-top: 40px;
  display: flex;
  flex-direction: row !important;
  gap: 15px;
  flex-wrap: wrap;
}

.stat-item {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  /* Brighter, more glass-like */
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 4px solid var(--primary);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: var(--main-transition);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-item p {
  font-size: 0.8rem;
  color: #ffffff;
  margin-bottom: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--main-transition);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

/* About Section Enhanced with Architectural Shapes */
.about-sec {
  padding: 100px 0;
  background-color: #fdfaf5;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-sec .bg-shape {
  position: absolute;
  background: rgba(30, 41, 59, 0.05);
  /* Increased for more prominence */
  transform: skewX(-20deg);
  z-index: -1;
}

.shape-1 {
  top: -50px;
  left: 5%;
  width: 150px;
  height: 120%;
}

.shape-2 {
  top: -100px;
  left: 20%;
  width: 80px;
  height: 130%;
}

.shape-3 {
  bottom: -50px;
  right: 10%;
  width: 200px;
  height: 110%;
  background: rgba(142, 121, 85, 0.06) !important;
  /* Increased bronze opacity */
}

.about-img-wrapper {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.about-img-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 80%;
  border: 8px solid rgba(142, 121, 85, 0.1);
  border-radius: 20px;
  z-index: -1;
}

.about-img-main {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
}

.about-img-main:hover {
  transform: translateY(-10px);
}

.about-experience {
  position: absolute;
  bottom: 40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 25px 35px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(142, 121, 85, 0.3);
  text-align: center;
  z-index: 3;
}

.about-experience span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}

.txtgeneral h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--secondary);
}

.about-feature-item i {
  width: 35px;
  height: 35px;
  background: rgba(142, 121, 85, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-premium {
  background: #2d2926;
  /* Solid Dark Charcoal for perfect contrast */
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(142, 121, 85, 0.3);
}

.cta-premium h2 {
  color: var(--white) !important;
}

.cta-premium p {
  color: #d1d1d1 !important;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: rgba(142, 121, 85, 0.08);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  transition: var(--main-transition);
}

.feature-card:hover .icon-box {
  background: var(--primary);
  color: var(--white);
}

/* Footer Styling */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-logo {
  max-width: 180px;
  filter: brightness(1.1);
}

.footer-links h5 {
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: #ffffff !important;
  /* Maximum brightness */
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--main-transition);
  display: inline-block;
}

.footer-links ul li a:hover {
  color: #c9b08a !important;
  transform: translateX(-5px);
}

.footer-links li span {
  color: #ffffff !important;
  /* Pure white */
}

.footer-about p {
  color: #ffffff !important;
  /* Pure white */
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Social Icons Fix */
.social-links .btn {
  border-color: rgba(142, 121, 85, 0.3) !important;
  color: var(--primary) !important;
  background: transparent !important;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--main-transition);
}

.social-links .btn:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  transform: translateY(-3px);
}

/* Contact Icons Fix */
.footer-links i.text-primary {
  color: var(--primary) !important;
}

/* Risk Warning Refined */
.risk-warning {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(142, 121, 85, 0.2) !important;
  padding: 25px !important;
  border-radius: 12px;
  margin-top: 40px;
}

.risk-warning h6 {
  color: var(--primary) !important;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.risk-warning p {
  color: #ffffff !important;
  /* Brighter risk warning */
  font-size: 0.85rem !important;
  line-height: 1.8 !important;
  opacity: 0.85;
}

.footer-legal p,
.footer-legal a {
  color: #ffffff !important;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Mobile Adjustments */
/* Mobile Adjustments & Responsiveness Overhaul */
@media (max-width: 991px) {
  .topbar {
    display: none !important;
    /* Delete and let it stay deleted */
  }

  .navbar {
    padding: 8px 15px !important;
    margin: 8px auto !important;
    width: 94% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 60px;
    /* Force slim height */
  }

  .navbar-brand img {
    max-height: 45px !important;
    /* Keep logo small on mobile */
    width: auto !important;
  }

  .hero-content {
    text-align: center !important;
    padding-top: 100px;
    padding-bottom: 40px;
    width: 100% !important;
  }

  /* Offcanvas Menu Comprehensive Fixes */
  .offcanvas {
    max-width: 300px !important;
    background-color: var(--secondary) !important;
  }

  .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .offcanvas .nav-link,
  .offcanvas .btn,
  .offcanvas .dropdown-item,
  .offcanvas .link-light {
    color: #ffffff !important;
    text-align: right !important;
    /* Ensure RTL alignment */
  }

  .offcanvas .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
  }

  .offcanvas .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 15px !important;
    opacity: 0.8;
    background: transparent !important;
  }

  .offcanvas .dropdown-item:hover {
    opacity: 1;
    color: var(--primary) !important;
  }

  .offcanvas .btn[data-bs-toggle="collapse"] {
    font-weight: 600;
    font-size: 1.05rem;
    border: none !important;
    box-shadow: none !important;
  }

  .offcanvas .collapse {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
  }

  .offcanvas .brand-logo {
    max-height: 45px;
    filter: none !important;
    /* Keep original colors but clear */
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
    /* Subtle background to make logo pop */
    border-radius: 6px;
  }

  .offcanvas i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
  }

  .offcanvas .collapse ul {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 15px;
  }

  .stat-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
    text-align: center;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 3px solid var(--primary);
  }
}
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .premium-btn,
  .premium-btn-outline {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* --- Inner Page Specific Components --- */

/* Hero Banner for Inner Pages */
.innerto {
  background: linear-gradient(rgba(16, 42, 67, 0.7), rgba(16, 42, 67, 0.7)),
    url("../img/Gemini_Generated_Image_h4mdph4mdph4mdph-1.png");
  background-size: cover;
  background-position: center;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  border-radius: 0 0 40px 40px;
  box-shadow: var(--shadow-md);
}

/* General Text & Image Section */
.txtwimgsec {
  padding: 80px 0;
  overflow: hidden;
}

.h3blue {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.h3blue::after {
  content: "";
  display: block;
  width: 50%;
  height: 4px;
  background: var(--primary-light);
  margin-top: 10px;
  border-radius: 10px;
}

.imggeneral img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--main-transition);
}

.imggeneral img:hover {
  transform: scale(1.02);
}

/* Feature Boxes (The ones that were too big) */
.abfeatures {
  padding: 80px 0;
  background-color: #f8faff;
}

.featurbox {
  background: var(--white);
  padding: 30px 25px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.featurbox:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(142, 121, 85, 0.1);
  border-color: var(--primary-light);
}

.iconfeatr {
  width: 70px;
  height: 70px;
  background: rgba(142, 121, 85, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.iconfeatr img {
  width: 40px !important;
  /* Fixed the huge icon issue */
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.featurbox h6 {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.featurbox p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Common Info Box */
.whychoose {
  padding: 100px 0;
}

.commbox {
  background: var(--white);
  padding: 45px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  transition: var(--main-transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.commbox:hover {
  box-shadow: var(--shadow-md);
  background: #fffcf8;
}

.commbox span {
  position: absolute;
  top: -25px;
  right: 30px;
  /* Adjust for RTL */
  background: var(--primary);
  width: 55px;
  height: 55px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(142, 121, 85, 0.25);
}

.commbox span img {
  width: 30px;
  filter: brightness(0) invert(1);
}

@media (max-width: 991px) {
  .innerto {
    height: 180px;
    margin-bottom: 40px;
  }

  .txtwimgsec {
    padding: 50px 0;
  }

  .featurbox {
    margin-bottom: 20px;
  }
}