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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --primary: #DFB976;
  --primary-hover: #f3d098;
  --secondary: #111111;
  --bg: #050505;
  --card-bg: #0d0d0d;
  --card-hover-bg: #121212;
  --white: #FFFFFF;
  --gray-100: #F7F7F7;
  --gray-300: #E0E0E0;
  --gray-600: #888888;
  --gray-800: #222222;
  --gray-900: #1a1a1a;
  
  --font-cairo: 'Cairo', sans-serif;
  --font-ibm: 'IBM Plex Sans Arabic', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --glow-primary: 0 0 20px rgba(223, 185, 118, 0.25);
  --glow-primary-strong: 0 0 30px rgba(223, 185, 118, 0.5);
  
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
  
  --max-width: 1280px;
}

/* --- BASE & UTILITIES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-ibm);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cairo);
  font-weight: 700;
  color: var(--white);
}

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

button, input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-800);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Grid & Layout Helpers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

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

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--white) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--primary);
}

/* Background Cyber Grid / Electronic Lines Effect */
.bg-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(223, 185, 118, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 185, 118, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
}

.bg-grid-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(223, 185, 118, 0.05) 0%, rgba(5, 5, 5, 0) 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-cairo);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #b88e4c 100%);
  color: var(--secondary);
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: var(--glow-primary-strong);
}

.btn-outline {
  border: 1px solid rgba(223, 185, 118, 0.4);
  color: var(--white);
  background: rgba(223, 185, 118, 0.03);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(223, 185, 118, 0.1);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-dark {
  background-color: var(--secondary);
  border: 1px solid var(--gray-800);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--gray-900);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(223, 185, 118, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  height: 75px;
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-cairo);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-300);
  position: relative;
  padding: 8px 4px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 750px;
}

.hero-subtitle {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 5px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-tag {
  background: rgba(223, 185, 118, 0.05);
  border: 1px solid rgba(223, 185, 118, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--gray-300);
  transition: var(--transition-fast);
}

.hero-tag:hover {
  background: rgba(223, 185, 118, 0.15);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Dynamic electronic lines running around the hero */
.hero-glow-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  height: 1px;
  width: 200px;
  animation: lineRun 8s linear infinite;
  opacity: 0.3;
}

.hero-glow-line:nth-child(1) {
  top: 25%;
  left: -200px;
  animation-delay: 0s;
}

.hero-glow-line:nth-child(2) {
  top: 60%;
  right: -200px;
  animation: lineRunRev 10s linear infinite;
  animation-delay: 2s;
}

@keyframes lineRun {
  0% { left: -200px; }
  100% { left: 100%; }
}

@keyframes lineRunRev {
  0% { right: -200px; }
  100% { right: 100%; }
}

/* --- SECTION HEADER --- */
.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(223, 185, 118, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background-color: rgba(223, 185, 118, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(223, 185, 118, 0.1);
  color: var(--primary);
  transition: var(--transition);
}

.service-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5px;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  transition: var(--transition);
}

/* Hover effects */
.service-card:hover {
  background-color: var(--card-hover-bg);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--glow-primary);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--primary);
  color: var(--secondary);
  box-shadow: var(--glow-primary);
}

.service-card:hover .service-icon-wrapper svg {
  transform: scale(1.15) rotate(5deg);
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card:hover p {
  color: var(--gray-300);
}

/* --- STATS SECTION --- */
.stats {
  background-color: #080808;
  border-top: 1px solid rgba(223, 185, 118, 0.05);
  border-bottom: 1px solid rgba(223, 185, 118, 0.05);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(223, 185, 118, 0.2), transparent);
}

.stat-number {
  font-family: var(--font-outfit);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: var(--glow-primary);
}

.stat-label {
  font-family: var(--font-cairo);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-300);
}

/* --- PRODUCTS SECTION --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-img-wrapper {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background-color: #0b0b0b;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary);
  color: var(--secondary);
  font-family: var(--font-cairo);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: var(--glow-primary);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--white);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-specs {
  list-style: none;
  margin-bottom: 24px;
}

.product-specs li {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-specs li::before {
  content: '✦';
  color: var(--primary);
  font-size: 0.75rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
  font-family: var(--font-outfit);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

/* Hover effects */
.product-card:hover {
  background-color: var(--card-hover-bg);
  border-color: rgba(223, 185, 118, 0.25);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

/* --- PROJECTS SECTION --- */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.portfolio-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-cairo);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-300);
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: var(--transition-fast);
}

.portfolio-tab:hover, .portfolio-tab.active {
  background-color: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: var(--glow-primary);
}

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

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.4) 60%, transparent 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 2;
}

.project-category {
  color: var(--primary);
  font-family: var(--font-cairo);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.project-title {
  font-size: 1.25rem;
  color: var(--white);
}

/* Hover effects */
.project-card:hover img {
  transform: scale(1.1);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* --- WHY ABLECOM SECTION --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(223, 185, 118, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.why-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(223, 185, 118, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 1.5rem;
  border: 1px solid rgba(223, 185, 118, 0.2);
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* Hover */
.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
  background-color: rgba(223, 185, 118, 0.02);
}

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

/* --- CERTIFICATE INDEPENDENT PAGE STYLE --- */
.certificate-hero {
  padding: 160px 0 80px 0;
  background: radial-gradient(circle at top left, rgba(223, 185, 118, 0.05) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.certificate-layout {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr;
  gap: 40px;
  margin-top: 60px;
}

.certificate-body {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.certificate-sec {
  margin-bottom: 40px;
}

.certificate-sec h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.certificate-sec p {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.req-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.req-list li {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.req-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

.steps-roadmap {
  position: relative;
  padding-right: 30px;
  margin-top: 25px;
}

.steps-roadmap::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  height: calc(100% - 20px);
  width: 2px;
  background-color: rgba(223, 185, 118, 0.15);
}

.roadmap-step {
  position: relative;
  margin-bottom: 30px;
}

.roadmap-step::before {
  content: '';
  position: absolute;
  top: 8px;
  right: -25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: var(--glow-primary-strong);
  z-index: 2;
}

.roadmap-step-num {
  font-family: var(--font-outfit);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.roadmap-step-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--white);
}

.roadmap-step-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.certificate-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-box {
  background-color: var(--card-bg);
  border: 1px solid rgba(223, 185, 118, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.sidebar-box h4 {
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.duration-badge {
  background-color: rgba(223, 185, 118, 0.08);
  border: 1px solid rgba(223, 185, 118, 0.2);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.duration-label {
  font-size: 0.9rem;
  color: var(--gray-300);
}

.duration-val {
  font-family: var(--font-cairo);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* --- CONTACT & MAP SECTION --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.channel-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.channel-card:hover {
  border-color: var(--primary);
  background-color: var(--card-hover-bg);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(223, 185, 118, 0.05);
  border: 1px solid rgba(223, 185, 118, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.channel-details h4 {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.channel-details p {
  font-family: var(--font-outfit);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.map-wrapper {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

/* Custom dark Leaflet styles */
.leaflet-container {
  background: var(--bg) !important;
}
.leaflet-tile {
  filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) !important;
}

.contact-form-panel {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-300);
  margin-bottom: 8px;
  font-family: var(--font-cairo);
}

.form-control {
  width: 100%;
  background-color: #080808;
  border: 1.5px solid var(--gray-800);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  background-color: #0a0a0a;
}

select.form-control option {
  background-color: var(--bg);
  color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* --- FOOTER --- */
.footer {
  background-color: #030303;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 80px 0 30px 0;
}

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

.footer-brand img {
  height: 54px;
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 320px;
}

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

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--secondary);
  border: 1px solid var(--gray-800);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gray-300);
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.footer-links a:hover {
  color: var(--primary);
  padding-right: 6px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--gray-600);
}

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

.footer-legal a {
  font-size: 0.85rem;
  color: var(--gray-600);
}

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

/* --- MODALS (PREMIUM DIALOGS) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.modal-wrapper {
  background-color: var(--card-bg);
  border: 1px solid rgba(223, 185, 118, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-wrapper {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px; /* Arabic layout, close button on left */
  width: 36px;
  height: 36px;
  background-color: var(--secondary);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  z-index: 10;
}

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

.modal-body {
  padding: 40px;
}

/* Portfolio Lightbox Specific Styles */
.modal-wrapper.lightbox {
  max-width: 800px;
}

.lightbox-slider {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: #000;
  margin-bottom: 24px;
}

.lightbox-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.lightbox-slide.active {
  display: block;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  z-index: 5;
}

.lightbox-nav:hover {
  background-color: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
}

.lightbox-prev {
  right: 20px;
}

.lightbox-next {
  left: 20px;
}

.lightbox-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.lightbox-info p {
  color: var(--gray-300);
  font-size: 0.95rem;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Arabic layout, alerts appear bottom left */
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--card-bg);
  border-right: 4px solid var(--primary);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  color: var(--white);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-120%);
  animation: slideIn 0.35s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideIn {
  100% { transform: translateX(0); }
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1024px) {
  .section-padding {
    padding: 80px 0;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .certificate-layout {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 75px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 75px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 75px);
    background-color: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(223, 185, 118, 0.08);
    flex-direction: column;
    padding: 40px;
    gap: 30px;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-cta {
    display: none; /* Hide standard quote button, put in mobile menu or show icon */
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item:nth-child(even)::after {
    display: none;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-channels {
    grid-template-columns: 1fr;
  }
  
  .lightbox-slider {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .req-list {
    grid-template-columns: 1fr;
  }
}
