/* ================================================
   AGENCE URBAINE D'AGADIR — PORTAL STYLESHEET
   IA SYSTEMS — 2025
   ================================================ */

/* ---- VARIABLES ---- */
:root {
  /* Brand Colors - Updated to match official logo */
  --primary: #1E5C9B;
  --primary-dark: #1A4A7D;
  --primary-deeper: #0D3A5C;
  --primary-light: #3A7BBF;
  --primary-lighter: #5A9BD4;
  --accent: #2E8B8B;
  --accent-glow: rgba(46, 139, 139, 0.4);
  --gold: #C4A35A;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-off: #F7FAFC;

  /* Text */
  --text-main: #2D3748;
  --text-muted: #718096;
  --text-on-dark: rgba(255, 255, 255, 0.85);
  --text-on-dark-muted: rgba(255, 255, 255, 0.55);

  /* Blue Background System */
  --bg-deep: #0B1F36;
  --bg-main: #0F2E47;
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-hover: rgba(255, 255, 255, 0.12);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.2);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0B1F36 0%, #1A4D80 40%, #2B6CB0 80%, #38B2AC 100%);
  --gradient-section: linear-gradient(180deg, var(--bg-main) 0%, #0D2840 100%);
  --gradient-card-shine: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);

  /* Spacing & Radius */
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --container: 1280px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(43, 108, 176, 0.4);
  --shadow-glow-accent: 0 0 30px rgba(56, 178, 172, 0.3);
}


/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif;
  background: var(--bg-deep);
  color: var(--text-on-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ---- LAYOUT ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}


/* ---- SECTION TITLES ---- */
.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-wrap.align-left {
  text-align: left;
}

.section-sub {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  margin-bottom: 12px;
  display: block;
}

.section-head {
  font-size: 36px;
  color: white;
}

.section-desc {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-glass);
  padding: 8px 0;
  font-size: 12px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  display: flex;
  gap: 24px;
}

.top-link {
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.top-link:hover {
  color: var(--accent);
}

.top-link svg {
  opacity: 0.7;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  color: var(--text-on-dark-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-glass);
}

.social-link:hover {
  color: white;
  background: var(--primary);
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.lang-btn {
  color: var(--text-on-dark-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--primary);
  color: white;
}

.lang-btn:hover:not(.active) {
  color: white;
}


/* ================================================
   NAVIGATION
   ================================================ */
.nav-wrapper {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 24px;
}

.glass-nav {
  background: rgba(15, 46, 71, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  transition: all 0.3s;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: white;
}

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

.nav-link.has-dropdown::after {
  display: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 16px;
  box-shadow: var(--shadow-lg);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--border-glass);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  margin-top: 8px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: var(--bg-glass);
  color: white;
  padding-left: 24px;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* CTA Button */
.btn-login {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.btn-login:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 108, 176, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s;
}

.hamburger {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hamburger::before {
  content: '';
  top: -8px;
}

.hamburger::after {
  content: '';
  top: 8px;
}

.mobile-menu-btn.active .hamburger {
  background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 120px;
  left: 24px;
  right: 24px;
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  display: block;
  padding: 14px 16px;
  color: var(--text-on-dark);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.mobile-link:hover {
  background: var(--bg-glass);
  color: var(--accent);
}


/* ================================================
   HERO SECTION
   ================================================ */
/* Base hero styles moved to HERO SLIDER section */

/* Hero Background Image */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/s/a/site/dev/building.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 58, 92, 0.92) 0%,
    rgba(30, 92, 155, 0.85) 40%,
    rgba(58, 123, 191, 0.8) 70%,
    rgba(46, 139, 139, 0.75) 100%
  );
  z-index: 1;
}

/* Mashrabiya Pattern Overlay */
.pattern-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(255, 255, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.03) 87.5%, rgba(255, 255, 255, 0.03)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.03) 87.5%, rgba(255, 255, 255, 0.03)),
    linear-gradient(30deg, rgba(255, 255, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.03) 87.5%, rgba(255, 255, 255, 0.03)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.03) 87.5%, rgba(255, 255, 255, 0.03)),
    linear-gradient(60deg, rgba(255, 255, 255, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02)),
    linear-gradient(60deg, rgba(255, 255, 255, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.blob-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: linear-gradient(180deg, var(--accent-glow) 0%, transparent 100%);
}

.blob-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: rgba(255, 255, 255, 0.06);
}

/* Hero Grid */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 5;
  flex: 1;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 58px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: #A3BFFA;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-on-dark);
  margin-bottom: 40px;
  max-width: 540px;
  font-weight: 300;
}

/* Hero Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-glass:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--accent);
}

.btn-outline svg {
  transition: transform 0.3s;
}

.btn-outline:hover svg {
  transform: translateX(4px);
}

/* Hero Stats Card */
.hero-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(30px);
  z-index: -1;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-item h3 {
  font-size: 42px;
  color: white;
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ================================================
   QUICK ACCESS BAR
   ================================================ */
.quick-access {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 10;
}

.quick-access-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  min-width: 120px;
}

.quick-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.quick-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
}

.quick-item:hover .quick-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.quick-item span {
  font-size: 13px;
  font-weight: 600;
  color: white;
}


/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
  padding: 100px 0;
  background: var(--bg-main);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-head {
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.mission-list {
  margin-bottom: 32px;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-on-dark);
}

.mission-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.mission-list li strong {
  color: white;
}

/* Director Card */
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.director-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.director-badge {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
}

.director-quote {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text-on-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.director-info {
  display: flex;
  flex-direction: column;
}

.director-name {
  font-weight: 700;
  color: white;
}

.director-title {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* ISO Badge */
.iso-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.iso-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

.iso-badge strong {
  display: block;
  color: white;
  font-size: 15px;
}

.iso-badge span {
  font-size: 12px;
  color: var(--text-on-dark-muted);
}


/* ================================================
   HEADQUARTERS SHOWCASE
   ================================================ */
.headquarters-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hq-image-container {
  position: absolute;
  inset: 0;
}

.hq-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hq-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 58, 92, 0.95) 0%,
    rgba(13, 58, 92, 0.85) 30%,
    rgba(13, 58, 92, 0.4) 60%,
    transparent 100%
  );
}

.hq-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0;
}

.hq-text {
  max-width: 550px;
}

.hq-text .section-head {
  margin-bottom: 20px;
}

.hq-desc {
  color: var(--text-on-dark);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hq-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hq-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}

.hq-feature svg {
  color: var(--accent);
}

.hq-feature span {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

@media (max-width: 768px) {
  .headquarters-section {
    min-height: 600px;
  }

  .hq-overlay {
    background: linear-gradient(
      180deg,
      rgba(13, 58, 92, 0.95) 0%,
      rgba(13, 58, 92, 0.85) 50%,
      rgba(13, 58, 92, 0.7) 100%
    );
  }

  .hq-text {
    max-width: 100%;
    text-align: center;
  }

  .hq-features {
    justify-content: center;
  }
}


/* ================================================
   STATISTICS SECTION
   ================================================ */
.stats-section {
  padding: 80px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.stats-header {
  text-align: center;
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
}

.stat-label {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
}

.stat-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}


/* ================================================
   SERVICES SECTION
   ================================================ */
.services-section {
  padding: 100px 0 80px;
  position: relative;
  z-index: 2;
  background: var(--gradient-section);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card-shine);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: white;
  transform: rotate(-10deg) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  color: white;
}

.service-desc {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-link span {
  transition: transform 0.2s;
}

.service-card:hover .service-link span {
  transform: translateX(4px);
}


/* ================================================
   NEWS SECTION
   ================================================ */
.news-section {
  padding: 80px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-glass);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}

/* Featured News */
.featured-news {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-md);
}

.featured-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.featured-news:hover .featured-img {
  transform: scale(1.05);
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
}

.news-date {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.featured-title {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: white;
  font-family: 'Playfair Display', serif;
}

.featured-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.news-read-more:hover {
  color: white;
}

/* Side News */
.side-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all 0.3s;
  cursor: pointer;
}

.side-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateX(5px);
}

.side-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 12px;
  min-width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.side-date .day {
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.side-date .month {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.side-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: white;
}

.side-item-excerpt {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

.news-footer {
  margin-top: 40px;
}


/* ================================================
   ANNONCES SECTION
   ================================================ */
.annonces-section {
  padding: 80px 0;
  background: var(--bg-deep);
}

.annonces-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-on-dark-muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: var(--bg-glass-hover);
  color: white;
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.annonce-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s;
}

.annonce-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
}

.annonce-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
}

.annonce-type.emploi {
  background: var(--accent);
}

.annonce-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  line-height: 1.4;
  font-family: 'DM Sans', sans-serif;
}

.annonce-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

.annonce-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.annonce-meta span:last-child {
  color: var(--accent);
  cursor: pointer;
}


/* ================================================
   PARTNERS SECTION
   ================================================ */
.partners-section {
  padding: 60px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-glass);
}

.partners-header {
  text-align: center;
  margin-bottom: 40px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.partner-logo {
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.partner-logo:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.partner-placeholder {
  color: var(--text-on-dark-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ================================================
   NEWSLETTER SECTION
   ================================================ */
.newsletter-section {
  padding: 60px 0;
  background: var(--bg-deep);
}

.newsletter-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter-content h3 {
  font-size: 28px;
  color: white;
  margin-bottom: 8px;
}

.newsletter-content p {
  color: var(--text-on-dark);
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 450px;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--bg-deep);
  color: var(--text-on-dark-muted);
  padding: 80px 0 30px;
  font-size: 14px;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.footer-brand p {
  max-width: 300px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-on-dark-muted);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-col h5 {
  color: white;
  font-size: 16px;
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

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

.footer-links a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-contact li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact a {
  color: var(--text-on-dark-muted);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-on-dark-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-credit strong {
  color: var(--accent);
}


/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}


/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-content {
  animation: fadeInUp 0.8s ease both;
}

.hero-visual {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-card {
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

.service-card {
  animation: fadeInUp 0.5s ease both;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.10s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.20s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.30s; }


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .newsletter-box {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    width: 100%;
    max-width: 100%;
  }

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

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto 30px;
  }

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

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu {
    display: block;
  }

  .top-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: flex-end;
  }

  .nav-wrapper {
    top: 44px;
    padding: 8px 16px;
  }

  .glass-nav {
    padding: 10px 20px;
  }

  .hero-slide {
    padding-top: 120px;
    padding-bottom: 140px;
  }

  .quick-access {
    bottom: 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .btn-white,
  .btn-glass {
    padding: 14px 24px;
    font-size: 14px;
  }

  .quick-access-grid {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .quick-item {
    min-width: 100px;
    padding: 16px 20px;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-head {
    font-size: 28px;
  }

  .stat-item h3 {
    font-size: 32px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-sub {
    display: none;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-card {
    padding: 24px;
  }

  .stat-grid {
    gap: 16px;
  }

  .stat-item h3 {
    font-size: 28px;
  }

  .partners-grid {
    gap: 16px;
  }

  .partner-logo {
    width: 100px;
    height: 60px;
  }
}


/* ================================================
   RTL (ARABIC) SUPPORT
   ================================================ */
[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Noto Sans Arabic', 'Playfair Display', serif;
}

/* Top Bar RTL */
[dir="rtl"] .top-bar-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .top-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .top-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .top-right {
  flex-direction: row-reverse;
}

/* Navigation RTL */
[dir="rtl"] .glass-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .brand-text {
  text-align: right;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .nav-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu a {
  text-align: right;
}

[dir="rtl"] .dropdown-menu a:hover {
  padding-left: 20px;
  padding-right: 24px;
}

/* Hero RTL */
[dir="rtl"] .hero-container {
  direction: rtl;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

[dir="rtl"] .btn-white,
[dir="rtl"] .btn-glass {
  flex-direction: row-reverse;
}

/* Quick Access RTL */
[dir="rtl"] .quick-access-grid {
  flex-direction: row-reverse;
}

/* About Section RTL */
[dir="rtl"] .about-grid {
  direction: rtl;
}

[dir="rtl"] .about-content {
  text-align: right;
}

[dir="rtl"] .section-title-wrap.align-left {
  text-align: right;
}

[dir="rtl"] .mission-list li {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .director-quote {
  border-left: none;
  border-right: 3px solid var(--accent);
  padding-left: 0;
  padding-right: 20px;
  text-align: right;
}

[dir="rtl"] .director-info {
  text-align: right;
}

[dir="rtl"] .iso-badge {
  flex-direction: row-reverse;
  text-align: right;
}

/* Headquarters RTL */
[dir="rtl"] .hq-overlay {
  background: linear-gradient(
    -90deg,
    rgba(13, 58, 92, 0.95) 0%,
    rgba(13, 58, 92, 0.85) 30%,
    rgba(13, 58, 92, 0.4) 60%,
    transparent 100%
  );
}

[dir="rtl"] .hq-text {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .hq-features {
  flex-direction: row-reverse;
}

[dir="rtl"] .hq-feature {
  flex-direction: row-reverse;
}

/* Stats RTL */
[dir="rtl"] .stat-bar span {
  background: linear-gradient(270deg, var(--primary), var(--accent));
}

/* Services RTL */
[dir="rtl"] .service-card {
  text-align: right;
}

[dir="rtl"] .service-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .service-card:hover .service-link span {
  transform: translateX(-4px);
}

[dir="rtl"] .service-card:hover .service-icon-box {
  transform: rotate(10deg) scale(1.1);
}

/* News RTL */
[dir="rtl"] .news-grid {
  direction: rtl;
}

[dir="rtl"] .featured-content {
  text-align: right;
}

[dir="rtl"] .side-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .side-item:hover {
  transform: translateX(-5px);
}

/* Annonces RTL */
[dir="rtl"] .annonce-card {
  text-align: right;
}

[dir="rtl"] .annonce-meta {
  flex-direction: row-reverse;
}

[dir="rtl"] .annonce-meta span {
  flex-direction: row-reverse;
}

/* Newsletter RTL */
[dir="rtl"] .newsletter-box {
  flex-direction: row-reverse;
}

[dir="rtl"] .newsletter-content {
  text-align: right;
}

[dir="rtl"] .newsletter-form {
  flex-direction: row-reverse;
}

[dir="rtl"] .newsletter-form button {
  flex-direction: row-reverse;
}

/* Footer RTL */
[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .footer-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-logo > div {
  text-align: right;
}

[dir="rtl"] .footer-brand {
  text-align: right;
}

[dir="rtl"] .footer-social {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-col {
  text-align: right;
}

[dir="rtl"] .footer-contact li {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-legal {
  flex-direction: row-reverse;
}

/* Buttons & Links RTL */
[dir="rtl"] .btn-outline {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn-outline:hover svg {
  transform: translateX(-4px);
}

/* Back to Top RTL */
[dir="rtl"] .back-to-top {
  right: auto;
  left: 30px;
}

/* Mobile Menu RTL */
[dir="rtl"] .mobile-menu {
  text-align: right;
}

[dir="rtl"] .mobile-link {
  text-align: right;
}

/* Responsive RTL Adjustments */
@media (max-width: 968px) {
  [dir="rtl"] .hero-content {
    text-align: center;
  }

  [dir="rtl"] .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  [dir="rtl"] .footer-bottom {
    flex-direction: column;
  }

  [dir="rtl"] .newsletter-box {
    flex-direction: column;
    text-align: center;
  }

  [dir="rtl"] .newsletter-content {
    text-align: center;
  }
}


/* ================================================
   HERO SLIDER
   ================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 44px); /* Account for top bar height */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: white;
}

.hero-slider {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 44px); /* Account for top bar height */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 120px;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide .hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-bg-image {
  transform: scale(1.05);
}

.hero-slide[data-slide="1"] .hero-bg-image {
  background-image: url('/s/a/site/dev/building.jpg');
}

.hero-slide[data-slide="2"] .hero-bg-image {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
}

.hero-slide[data-slide="3"] .hero-bg-image {
  background: linear-gradient(135deg, #0d3a5c 0%, #1e5c9b 50%, #2e8b8b 100%);
}

/* Slide-specific overlays */
.hero-slide[data-slide="2"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.9) 0%,
    rgba(44, 82, 130, 0.85) 40%,
    rgba(43, 108, 176, 0.8) 70%,
    rgba(196, 163, 90, 0.6) 100%
  );
}

.hero-slide[data-slide="3"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(13, 58, 92, 0.92) 0%,
    rgba(30, 92, 155, 0.88) 40%,
    rgba(46, 139, 139, 0.85) 100%
  );
}

/* Vertical Slider Navigation */
.slider-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.slider-dot::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: white;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  border-color: var(--accent);
}

.slider-dot.active::before {
  transform: scale(1);
  background: var(--accent);
}

/* Slider Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.1s linear;
}

/* Slide Content Animations */
.hero-slide .hero-content {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide .hero-visual {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.hero-slide.active .hero-visual {
  opacity: 1;
  transform: translateY(0);
}

/* RTL Slider Nav */
[dir="rtl"] .slider-nav {
  right: auto;
  left: 40px;
}

@media (max-width: 768px) {
  .hero-slide {
    padding-top: 120px;
    padding-bottom: 160px;
  }

  .slider-nav {
    right: 16px;
    gap: 12px;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .quick-access {
    bottom: 15px;
  }

  [dir="rtl"] .slider-nav {
    left: 16px;
  }
}


/* ================================================
   ANIMATED COUNTERS
   ================================================ */
.stat-number {
  font-variant-numeric: tabular-nums;
}

.stat-number.counting {
  animation: countPulse 0.1s ease-in-out;
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.stat-card.animated .stat-bar span {
  animation: barGrow 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes barGrow {
  from { width: 0%; }
}


/* ================================================
   LIVE CHAT WIDGET
   ================================================ */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1000;
  font-family: 'DM Sans', sans-serif;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(30, 92, 155, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.4;
  animation: chatPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes chatPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(30, 92, 155, 0.5);
}

.chat-bubble:hover::before {
  animation-play-state: paused;
}

.chat-bubble svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}

.chat-bubble.open svg {
  transform: rotate(180deg) scale(0.9);
}

.chat-bubble .chat-close {
  display: none;
}

.chat-bubble.open .chat-icon {
  display: none;
}

.chat-bubble.open .chat-close {
  display: block;
}

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  background: rgba(15, 46, 71, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar svg {
  width: 24px;
  height: 24px;
  color: white;
}

.chat-header-info h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 2px;
}

.chat-header-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-info span::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-body {
  padding: 24px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.chat-message {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-on-dark);
  line-height: 1.6;
}

.chat-message strong {
  color: white;
  display: block;
  margin-bottom: 6px;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-quick-btn {
  padding: 8px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-on-dark-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-quick-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.chat-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 12px;
}

.chat-footer input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.chat-footer input::placeholder {
  color: var(--text-on-dark-muted);
}

.chat-footer input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-send-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* RTL Chat */
[dir="rtl"] .chat-widget {
  right: auto;
  left: 30px;
}

[dir="rtl"] .chat-window {
  right: auto;
  left: 0;
}

[dir="rtl"] .chat-header {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .chat-header-info span {
  flex-direction: row-reverse;
}

[dir="rtl"] .chat-message {
  border-radius: 16px 16px 4px 16px;
  text-align: right;
}

[dir="rtl"] .chat-footer {
  flex-direction: row-reverse;
}

[dir="rtl"] .chat-quick-actions {
  flex-direction: row-reverse;
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 90px;
    right: 16px;
  }

  .chat-bubble {
    width: 54px;
    height: 54px;
  }

  .chat-window {
    width: calc(100vw - 32px);
    right: -8px;
  }

  [dir="rtl"] .chat-widget {
    left: 16px;
  }

  [dir="rtl"] .chat-window {
    left: -8px;
  }
}


/* ================================================
   PROJECT CAROUSEL
   ================================================ */
.projects-section {
  padding: 80px 0;
  background: var(--bg-main);
  overflow: hidden;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.projects-header .section-title-wrap {
  margin-bottom: 0;
  text-align: left;
}

.carousel-nav {
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.projects-track-wrapper {
  overflow: hidden;
  margin: 0 -12px;
  padding: 0 12px;
}

.projects-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  user-select: none;
}

.projects-track.dragging {
  cursor: grabbing;
  transition: none;
}

.project-card {
  flex: 0 0 340px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: var(--border-glass-hover);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-placeholder svg {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.3);
}

.project-status {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status.en-cours {
  background: var(--accent);
  color: white;
}

.project-status.termine {
  background: #4ade80;
  color: #052e16;
}

.project-status.planifie {
  background: var(--gold);
  color: #1a1207;
}

.project-content {
  padding: 24px;
}

.project-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  line-height: 1.4;
  font-family: 'DM Sans', sans-serif;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
}

.project-location svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* RTL Projects */
[dir="rtl"] .projects-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .projects-header .section-title-wrap {
  text-align: right;
}

[dir="rtl"] .carousel-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .carousel-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .project-status {
  left: auto;
  right: 16px;
}

[dir="rtl"] .project-content {
  text-align: right;
}

[dir="rtl"] .project-location {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card {
    flex: 0 0 300px;
  }

  [dir="rtl"] .projects-header {
    align-items: flex-end;
  }
}


/* ================================================
   SEARCH MODAL
   ================================================ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.open {
  opacity: 1;
  visibility: visible;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 54, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.search-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  padding: 0 24px;
  transform: translateY(-30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.open .search-content {
  transform: translateY(0);
}

.search-close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
}

.search-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.search-input-wrap {
  position: relative;
  margin-bottom: 32px;
}

.search-input-wrap svg {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  color: var(--text-on-dark-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 28px 28px 28px 76px;
  background: var(--bg-glass);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  color: white;
  font-size: 22px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: all 0.3s;
}

.search-input::placeholder {
  color: var(--text-on-dark-muted);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 92, 155, 0.2);
}

.search-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.search-filter {
  padding: 12px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-filter:hover,
.search-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.search-filter svg {
  width: 18px;
  height: 18px;
}

.search-hint {
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: 14px;
}

.search-hint kbd {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  margin-left: 8px;
}

/* Search Button in Nav */
.nav-search-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-search-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.nav-search-btn svg {
  width: 18px;
  height: 18px;
}

/* RTL Search */
[dir="rtl"] .search-close {
  right: auto;
  left: 40px;
}

[dir="rtl"] .search-input-wrap svg {
  left: auto;
  right: 28px;
}

[dir="rtl"] .search-input {
  padding: 28px 76px 28px 28px;
  text-align: right;
}

[dir="rtl"] .search-filters {
  flex-direction: row-reverse;
}

[dir="rtl"] .search-filter {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .search-modal {
    padding-top: 10vh;
  }

  .search-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .search-input {
    font-size: 18px;
    padding: 22px 22px 22px 60px;
  }

  .search-input-wrap svg {
    left: 20px;
    width: 24px;
    height: 24px;
  }

  .search-filter {
    padding: 10px 18px;
    font-size: 13px;
  }

  .search-hint {
    display: none;
  }

  [dir="rtl"] .search-close {
    left: 20px;
  }

  [dir="rtl"] .search-input {
    padding: 22px 60px 22px 22px;
  }

  [dir="rtl"] .search-input-wrap svg {
    right: 20px;
  }
}
